# ────────────────────────────────────────────────────── # DEV — only starts the database # Frontend and Backend run natively via NX for hot reload: # npm run dev → nx run-many -t serve --parallel # # Usage: docker compose -f docker-compose.dev.yml up -d # ────────────────────────────────────────────────────── name: citygame-dev services: # ── Database (only service needed for local dev) ── db: image: postgres:16-alpine container_name: citygame-dev-db restart: unless-stopped environment: POSTGRES_DB: citygame POSTGRES_USER: citygame POSTGRES_PASSWORD: citygame ports: # Expose directly to localhost for IDEs and tools - "5432:5432" volumes: - pgdata-dev:/var/lib/postgresql/data networks: - citygame-dev-net healthcheck: test: ["CMD-SHELL", "pg_isready -U citygame -d citygame"] interval: 5s timeout: 3s retries: 5 volumes: pgdata-dev: driver: local networks: citygame-dev-net: driver: bridge