docker-osm/docker-compose.yml

79 wiersze
2.5 KiB
YAML
Czysty Zwykły widok Historia

2015-07-28 13:43:02 +00:00
storage:
image: ubuntu:latest
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-18 12:24:54 +00:00
image: kartoza/postgis:9.4-2.1
2015-07-23 16:10:06 +00:00
hostname: db
environment:
- USERNAME=docker
- PASS=docker
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
#image: kartoza/imposm
build: docker-imposm3
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
- DATEBASE=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)
- 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
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-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.
- 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/
2015-12-18 14:05:30 +00:00
# folder for diff which hasn't been imported yet
- IMPORT_QUEUE = import_queue
2015-12-18 14:05:30 +00:00
# folder for diff which has been imported
- IMPORT_DONE = import_done
2015-12-18 14:05:30 +00:00
# seconds between 2 executions of the script
- TIME = 120