docker-osm/docker-compose.yml

79 wiersze
2.5 KiB
YAML

storage:
image: ubuntu:latest
hostname: storage
volumes:
# These are sharable to other containers
- ./settings:/home/settings
- /home/import_done
- /home/import_queue
- /home/cache
#- ./import_done:/home/import_done
#- ./import_queue:/home/import_queue
#- ./cache:/home/cache
db:
image: kartoza/postgis:9.4-2.1
hostname: db
environment:
- USERNAME=docker
- PASS=docker
imposm:
#image: kartoza/imposm
build: docker-imposm3
volumes_from:
- storage
links:
- db:db
environment:
- USER=docker
- PASSWORD=docker
- PORT=5432
- HOST=db
- DATEBASE=gis
# seconds between 2 executions of the script
- TIME=120
# folder for settings (with *.json and *.sql)
- SETTINGS = settings
# folder for caching
- CACHE = cache
# folder for diff which has been imported
- IMPORT_DONE = import_done
# folder for diff which hasn't been imported yet
- IMPORT_QUEUE = import_queue
# it can be 3857
- SRID = 4326
# see http://imposm.org/docs/imposm3/latest/tutorial.html#optimize
- OPTIMIZE = false
# see http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
- DBSCHEMA_PRODUCTION = public
# http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
- DBSCHEMA_IMPORT = import
# http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables
- DBSCHEMA_BACKUP = backup
osmupdate:
build: docker-osmupdate
volumes_from:
- storage
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.
- MAX_DAYS = 100
# osmupdate uses a combination of minutely, hourly and daily changefiles. This value can be minute, hour, day or sporadic.
- DIFF = sporadic
# argument to determine the maximum number of parallely processed changefiles.
- MAX_MERGE = 7
# define level for gzip compression. values between 1 (low compression but fast) and 9 (high compression but slow)
- COMPRESSION_LEVEL = 1
# change the URL to use a custom URL to fetch regional file updates.
- BASE_URL = http://planet.openstreetmap.org/replication/
# folder for diff which hasn't been imported yet
- IMPORT_QUEUE = import_queue
# folder for diff which has been imported
- IMPORT_DONE = import_done
# seconds between 2 executions of the script
- TIME = 120