From 7c695ccf24fb7c5f80da57a8f0111b7314fb13a6 Mon Sep 17 00:00:00 2001 From: sHa Date: Fri, 22 Mar 2024 08:30:42 +0000 Subject: [PATCH] Add compose.debug.yml for debugging catcher service --- compose.debug.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 compose.debug.yml diff --git a/compose.debug.yml b/compose.debug.yml new file mode 100644 index 0000000..fc7d653 --- /dev/null +++ b/compose.debug.yml @@ -0,0 +1,30 @@ +networks: + apps-proxy: + external: true + name: apps-proxy + +services: + catcher: + image: scatcher + build: + context: . + dockerfile: Dockerfile + volumes: + - .:/app + networks: + - apps-proxy + ports: + - ${APP_DEBUG_PORT:-5678}:${APP_DEBUG_PORT:-5678} + labels: + traefik.enable: true + traefik.docker.network: apps-proxy + traefik.http.routers.catcher.entrypoints: websecure + traefik.http.routers.catcher.rule: Host(`$APP_URL`) + traefik.http.routers.catcher.tls: true + traefik.http.routers.catcher.tls.certresolver: letsencrypt + traefik.http.services.catcher.loadbalancer.server.port: 8000 + command: + [ + "sh", "-c", + "pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:${APP_DEBUG_PORT:-5678} -m uvicorn app:app --reload --host 0.0.0.0 --port 8000", + ] \ No newline at end of file