File size: 1,480 Bytes
393491d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # 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
|