DMRmap/compose.dev.yml
2026-08-04 14:33:00 +02:00

44 lines
1.1 KiB
YAML

services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: dmrmap
POSTGRES_PASSWORD: dmrmap
POSTGRES_DB: dmrmap
volumes:
- pgdata-dev:/var/lib/postgresql/data
ports:
- "5432:5432"
dmrmap:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
volumes:
- .:/app
- go-mod-cache:/go/pkg/mod
- go-build-cache:/root/.cache/go-build
- node_modules:/app/frontend/node_modules
depends_on:
- postgres
environment:
- DATABASE_URL=postgres://dmrmap:dmrmap@postgres:5432/dmrmap?sslmode=disable
- JSON_PATH=/app/backend/data/rptrs.json
- BMRPTRS_PATH=/app/backend/data/bmrptrs.json
- LISTEN_ADDR=:8080
- ADMIN_TOKEN=adminparty
- STATIC_DIR=/app/frontend/static
- MIGRATIONS_DIR=/app/backend/migrations
- NTFY_URL=${NTFY_URL:-}
- NTFY_TOPIC=${NTFY_TOPIC:-}
- NTFY_USER=${NTFY_USER:-}
- NTFY_TOKEN=${NTFY_TOKEN:-}
- PUBLIC_BASE_URL=${PUBLIC_BASE_URL:-http://localhost:8080}
volumes:
go-mod-cache:
go-build-cache:
node_modules:
pgdata-dev: