# Debug override — layer on top of docker-compose.local.yml # Usage: docker-compose -f docker-compose.local.yml -f docker-compose.debug.yml up --build # # Each worker listens on a unique debugpy port. # Attach VS Code using .vscode/launch.json (included in this repo). # # Port mapping: # health-app → 5678 # scheduler → 5679 # allocation → 5680 # expiry → 5681 # response → 5682 version: "3.8" services: health-app: command: > python -m debugpy --listen 0.0.0.0:5678 --wait-for-client -m uvicorn app.main:app --host 0.0.0.0 --port 8080 ports: - "5678:5678" environment: LOG_LEVEL: DEBUG scheduler: command: > python -m debugpy --listen 0.0.0.0:5679 --wait-for-client -m app.workers.run_scheduler_worker ports: - "5679:5679" environment: LOG_LEVEL: DEBUG allocation: command: > python -m debugpy --listen 0.0.0.0:5680 --wait-for-client -m app.workers.run_allocation_worker ports: - "5680:5680" environment: LOG_LEVEL: DEBUG expiry: command: > python -m debugpy --listen 0.0.0.0:5681 --wait-for-client -m app.workers.run_expiry_worker ports: - "5681:5681" environment: LOG_LEVEL: DEBUG response: command: > python -m debugpy --listen 0.0.0.0:5682 --wait-for-client -m app.workers.run_response_worker ports: - "5682:5682" environment: LOG_LEVEL: DEBUG