Files
work-club-manager/docker-compose.yml
WorkClub Automation 7a2b79af83 infra(docker-compose): add full-stack development environment
Implements Task 22: Docker Compose Full Stack with Hot Reload

Services added:
- dotnet-api: Builds from backend/Dockerfile.dev
  - Port 5000→8080, volume mount for hot reload
  - Development environment with database + Keycloak config
  - Depends on: postgres (healthy), keycloak (healthy)

- nextjs: Builds from frontend/Dockerfile.dev
  - Port 3000, volume mount with node_modules exclusion
  - API URLs, NextAuth, Keycloak config
  - Depends on: dotnet-api

Dependency chain: postgres → keycloak → dotnet-api → nextjs

Features:
- Hot reload enabled via volume mounts with :cached flag (macOS)
- Backend runs migrations + seed on startup (Development mode)
- dotnet watch monitors backend changes
- bun run dev monitors frontend changes
- All services on app-network bridge

Environment variables configured for local development.

Note: Docker build/runtime verification skipped (Docker daemon unavailable).
2026-03-03 21:05:23 +01:00

2.9 KiB