From a091a8ee131d7b837ca59d254d09e29bf5151009 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Thu, 31 Mar 2022 21:24:46 +0300 Subject: [PATCH] checker --- docker-compose-deploy.yaml | 17 +++++++++++++++++ nginx/nginx.conf | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/docker-compose-deploy.yaml b/docker-compose-deploy.yaml index a87d5a8..cc1eccd 100644 --- a/docker-compose-deploy.yaml +++ b/docker-compose-deploy.yaml @@ -102,6 +102,23 @@ services: parallelism: 1 order: start-first + checker: + image: mathwave/sprint-repo:sprint + networks: + - net + environment: + DB_PASSWORD: $DB_PASSWORD + DEBUG: $DEBUG + TELEGRAM_TOKEN: $TELEGRAM_TOKEN + command: ./manage.py runserver 0.0.0.0:7999 --noreload + deploy: + mode: replicated + restart_policy: + condition: on-failure + update_config: + parallelism: 1 + order: start-first + storage: image: mathwave/sprint-repo:sprint networks: diff --git a/nginx/nginx.conf b/nginx/nginx.conf index cae64cd..cf9be9e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -9,6 +9,10 @@ http { proxy_pass http://rabbitmq:15672/; } + location /checker/ { + proxy_pass http://checker:7999/; + } + location / { proxy_pass http://web:8000/; }