docker-compose.debug.yml 356 B

123456789101112
  1. version: '3.4'
  2. services:
  3. examcatapp:
  4. image: jianboy/dlib:latest
  5. build:
  6. context: .
  7. dockerfile: ./Dockerfile
  8. command: ["sh", "-c", "pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn mapp:app --host 0.0.0.0 --port 8000"]
  9. ports:
  10. - 8000:8000
  11. - 5678:5678