DMRmap/compose.dev.yml
2026-02-19 17:00:59 +01:00

39 lines
950 B
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
volumes:
go-mod-cache:
go-build-cache:
node_modules:
pgdata-dev: