CityGame/docker-compose.dev.yml
Camille 7a9383e87f feat: bootstrap fullstack NX monorepo (Spring Boot + React)
- Add Spring Boot 3.4 backend with health API, CORS, and dev/prod profiles
- Add React 18 + Vite frontend with typed health client
- Configure NX workspace, pnpm, and Docker Compose stacks
- Document stack, commands, and layout in README
- Add .gitignore for Node, Java, Docker, and IDE artifacts
2026-05-29 23:42:03 +02:00

41 lines
1.2 KiB
YAML

# ──────────────────────────────────────────────────────
# 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