42 lines
928 B
YAML
42 lines
928 B
YAML
volumes:
|
|
nominatim-data:
|
|
postgres_data:
|
|
|
|
services:
|
|
backend:
|
|
build: .
|
|
image: backend:latest
|
|
container_name: sumoc-backend
|
|
ports:
|
|
- "8080:8080"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:16.2-alpine
|
|
container_name: sumoc_db
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=admin
|
|
- POSTGRES_DB=sumoc
|
|
volumes:
|
|
- ./postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
restart: always
|
|
|
|
nominatim:
|
|
image: mediagis/nominatim:5.2
|
|
container_name: nominatim
|
|
environment:
|
|
PBF_URL: https://download.geofabrik.de/europe/germany/nordrhein-westfalen-latest.osm.pbf
|
|
REPLICATION_ENABLED: false
|
|
volumes:
|
|
- ./nominatim-data:/var/lib/postgresql/14/main
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6666:8080"
|