2015-07-28 13:43:02 +00:00
|
|
|
storage:
|
2015-07-30 09:58:59 +00:00
|
|
|
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:
|
2015-07-30 09:58:59 +00:00
|
|
|
# These are sharable to other containers
|
2015-07-28 13:43:02 +00:00
|
|
|
- ./settings:/home/settings
|
2015-07-30 09:58:59 +00:00
|
|
|
- /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
|
2015-07-31 14:18:53 +00:00
|
|
|
# seconds between 2 executions of the script
|
2015-07-30 07:43:16 +00:00
|
|
|
- TIME=120
|
2015-07-31 14:18:53 +00:00
|
|
|
# folder for settings (with *.json and *.sql)
|
2015-12-21 15:37:07 +00:00
|
|
|
- SETTINGS=settings
|
2015-07-31 14:18:53 +00:00
|
|
|
# folder for caching
|
2015-12-21 15:37:07 +00:00
|
|
|
- CACHE=cache
|
2015-07-31 14:18:53 +00:00
|
|
|
# folder for diff which has been imported
|
2015-12-21 15:37:07 +00:00
|
|
|
- IMPORT_DONE=import_done
|
2015-07-31 14:18:53 +00:00
|
|
|
# folder for diff which hasn't been imported yet
|
2015-12-21 15:37:07 +00:00
|
|
|
- IMPORT_QUEUE=import_queue
|
2015-07-31 14:18:53 +00:00
|
|
|
# it can be 3857
|
2015-12-21 15:37:07 +00:00
|
|
|
- SRID=4326
|
2015-07-31 14:18:53 +00:00
|
|
|
# see http://imposm.org/docs/imposm3/latest/tutorial.html#optimize
|
2015-12-21 15:37:07 +00:00
|
|
|
- OPTIMIZE=false
|
2015-07-31 14:18:53 +00:00
|
|
|
# see http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
|
2015-12-21 15:37:07 +00:00
|
|
|
- DBSCHEMA_PRODUCTION=public
|
2015-07-31 14:18:53 +00:00
|
|
|
# http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
|
2015-12-21 15:37:07 +00:00
|
|
|
- DBSCHEMA_IMPORT=import
|
2015-07-31 14:18:53 +00:00
|
|
|
# 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-31 14:18:53 +00:00
|
|
|
|
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:
|
2015-07-31 14:18:53 +00:00
|
|
|
# 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
|
2015-07-31 14:18:53 +00:00
|
|
|
# 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
|
2015-07-31 14:18:53 +00:00
|
|
|
# argument to determine the maximum number of parallely processed changefiles.
|
2015-12-21 15:37:07 +00:00
|
|
|
- MAX_MERGE=7
|
2015-07-31 14:18:53 +00:00
|
|
|
# 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
|
2015-07-31 14:18:53 +00:00
|
|
|
# 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
|