openstreetmap-carto/docker-compose.yml
Marko Martinić 4a54fb5290 Add improvements to get-external-data.py and make using it more user friendly
Most important improvement is --no-update option.
Add ability to pass options to script via env variables.
Update documentation accordingly to help users better understand how to do it.
Also fixes #4590 (cache option saving data in place where it was called)

Resolves: #4590
2022-07-17 03:00:15 +02:00

44 lines
891 B
YAML

version: '2'
services:
kosmtik:
image: kosmtik:v1
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/openstreetmap-carto
depends_on:
- db
ports:
- "127.0.0.1:6789:6789"
environment:
- PGHOST=db
- PGUSER=postgres
db:
image: db:v1
build:
context: .
dockerfile: Dockerfile.db
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
import:
image: import:v1
build:
context: .
dockerfile: Dockerfile.import
volumes:
- .:/openstreetmap-carto
depends_on:
- db
environment:
- PGHOST=db
- PGUSER=postgres
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
- OSM2PGSQL_CACHE
- OSM2PGSQL_NUMPROC
- OSM2PGSQL_DATAFILE
- EXTERNAL_DATA_SCRIPT_FLAGS