create separate docker compose for local full dockerized execution
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user