docker-osm/docker-compose.yml

91 wiersze
2.8 KiB
YAML
Czysty Zwykły widok Historia

2015-07-28 13:43:02 +00:00
storage:
image: ubuntu:latest
2015-12-28 10:48:42 +00:00
container_name: dockerosm_storage
2015-07-28 13:43:02 +00:00
hostname: storage
volumes:
# These are sharable to other containers
2015-07-28 13:43:02 +00:00
- ./settings:/home/settings
- /home/import_done
- /home/import_queue
- /home/cache
2015-12-18 14:05:30 +00:00
#- ./import_done:/home/import_done
#- ./import_queue:/home/import_queue
#- ./cache:/home/cache
2015-07-28 13:43:02 +00:00
2015-07-23 16:10:06 +00:00
db:
2015-12-22 12:45:54 +00:00
# About the postgresql version, it should match in the dockerfile of docker-imposm3
2015-12-18 12:24:54 +00:00
image: kartoza/postgis:9.4-2.1
2015-12-28 10:48:42 +00:00
container_name: dockerosm_db
2015-07-23 16:10:06 +00:00
hostname: db
environment:
- USERNAME=docker
- PASS=docker
2015-12-29 13:38:08 +00:00
volumes_from:
- storage
2016-07-19 10:35:23 +00:00
ports:
- "5433:5432"
2015-07-28 13:43:02 +00:00
2015-07-23 16:10:06 +00:00
imposm:
2015-07-30 10:45:27 +00:00
build: docker-imposm3
2015-12-28 10:48:42 +00:00
container_name: dockerosm_imposm
2015-07-28 13:43:02 +00:00
volumes_from:
- storage
2015-07-23 16:10:06 +00:00
links:
- db:db
environment:
2015-07-28 13:43:02 +00:00
- USER=docker
- PASSWORD=docker
- PORT=5432
- HOST=db
2015-12-22 12:45:54 +00:00
- DATABASE=gis
# seconds between 2 executions of the script
2015-07-30 07:43:16 +00:00
- TIME=120
# folder for settings (with *.json and *.sql)
2015-12-21 15:37:07 +00:00
- SETTINGS=settings
# folder for caching
2015-12-21 15:37:07 +00:00
- CACHE=cache
# folder for diff which has been imported
2015-12-21 15:37:07 +00:00
- IMPORT_DONE=import_done
# folder for diff which hasn't been imported yet
2015-12-21 15:37:07 +00:00
- IMPORT_QUEUE=import_queue
# it can be 3857
2015-12-21 15:37:07 +00:00
- SRID=4326
# see http://imposm.org/docs/imposm3/latest/tutorial.html#optimize
2015-12-21 15:37:07 +00:00
- OPTIMIZE=false
# see http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
2015-12-21 15:37:07 +00:00
- DBSCHEMA_PRODUCTION=public
# http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
2015-12-21 15:37:07 +00:00
- DBSCHEMA_IMPORT=import
# http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
2015-12-21 15:37:07 +00:00
- DBSCHEMA_BACKUP=backup
2015-12-22 12:45:54 +00:00
# Install some styles if you are using the default mapping. It can be 'yes' or 'no'
- QGIS_STYLE=yes
2015-12-29 13:38:08 +00:00
# Use clip in the database
- CLIP=no
2015-07-28 13:43:02 +00:00
2015-07-23 16:10:06 +00:00
osmupdate:
2015-07-30 10:45:27 +00:00
build: docker-osmupdate
2015-12-28 10:48:42 +00:00
container_name: dockerosm_osmupdate
2015-07-28 13:43:02 +00:00
volumes_from:
- storage
2015-07-30 07:43:16 +00:00
environment:
# These are all currently the defaults but listed here for your
# convenience if you want to change them
# the maximum time range to assamble a cumulated changefile.
2015-12-21 15:37:07 +00:00
- MAX_DAYS=100
# osmupdate uses a combination of minutely, hourly and daily changefiles. This value can be minute, hour, day or sporadic.
2015-12-21 15:37:07 +00:00
- DIFF=sporadic
# argument to determine the maximum number of parallely processed changefiles.
2015-12-21 15:37:07 +00:00
- MAX_MERGE=7
# define level for gzip compression. values between 1 (low compression but fast) and 9 (high compression but slow)
2015-12-21 15:37:07 +00:00
- COMPRESSION_LEVEL=1
# change the URL to use a custom URL to fetch regional file updates.
2015-12-21 15:37:07 +00:00
- BASE_URL=http://planet.openstreetmap.org/replication/
2015-12-18 14:05:30 +00:00
# folder for diff which hasn't been imported yet
2015-12-21 15:37:07 +00:00
- IMPORT_QUEUE=import_queue
2015-12-18 14:05:30 +00:00
# folder for diff which has been imported
2015-12-21 15:37:07 +00:00
- IMPORT_DONE=import_done
2015-12-18 14:05:30 +00:00
# seconds between 2 executions of the script
2015-12-21 15:37:07 +00:00
- TIME=120