49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
networks:
|
|
nominatim:
|
|
name: nominatim
|
|
driver: bridge
|
|
|
|
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:15
|
|
container_name: sumoc-postgres
|
|
environment:
|
|
POSTGRES_DB: sumoc
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: admin
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
|
|
nominatim:
|
|
image: mediagis/nominatim:5.2
|
|
container_name: nominatim
|
|
environment:
|
|
PBF_URL: https://download.geofabrik.de/europe/germany/nordrhein-westfalen-latest.osm.pbf
|
|
REPLICATION_URL: https://download.geofabrik.de/europe/germany/nordrhein-westfalen-updates/
|
|
volumes:
|
|
- nominatim-data:/var/lib/postgresql/14/main
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6666:8080"
|
|
networks:
|
|
- nominatim
|