openstreetmap-carto/docker-compose.yml
Thomas Pétillon b7e0691161
Adapt Docker setup to latest changes (#5045)
* Adapt Docker setup to latest changes

And use newer versions of base images.

* Remove fonts from Dockerfile, as they are downloaded separately

* Mention the external data download in Docker documentation

* Add more log messages to track the import process

* Change URL for Noto Emoji font in (deprecated) get-fonts.sh script
2025-09-04 16:08:33 +03:00

45 lines
951 B
YAML

version: '2'
services:
kosmtik:
image: openstreetmap-carto-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: openstreetmap-carto-db:v1
build:
context: .
dockerfile: Dockerfile.db
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
import:
image: openstreetmap-carto-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