Skip to content

Commit

Permalink
Merge pull request #793 from bcgov/feat/untp-vc
Browse files Browse the repository at this point in the history
refactor: debugpy is configured by environment variable
  • Loading branch information
ianco authored Sep 5, 2024
2 parents bd5b0eb + d0ec375 commit 08059a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/docker-compose-debug.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
version: '3'
version: "3"
services:
vcr-api:
command: ["sh", "-c", "pip install debugpy -t /tmp && python ./manage.py migrate && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 ./manage.py runserver 0.0.0.0:8080"]
environment:
- DEBUGPY=${DEBUGPY}
command: >
sh -c "python ./manage.py migrate && if [ ! -z $DEBUGPY ]; then pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 ./manage.py runserver 0.0.0.0:8080; else python ./manage.py runserver 0.0.0.0:8080; fi"
volumes:
- ../server/vcr-server/vcr_server:/opt/app-root/src/vcr_server
- ../server/vcr-server/subscriptions:/opt/app-root/src/subscriptions
- ../server/vcr-server/agent_webhooks:/opt/app-root/src/agent_webhooks
- ../server/vcr-server/api:/opt/app-root/src/api
ports:
- 5678:5678
- 5678:5678

0 comments on commit 08059a2

Please sign in to comment.