From 8557a728d6e7707f39195431c58e8ee04815ce5f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 22 Sep 2023 10:46:18 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(docker-compose.override.yml)?= =?UTF-8?q?:=20expose=20Redis=20port=206379=20for=20the=20queue=20service?= =?UTF-8?q?=20=E2=9C=A8=20feat(docker-compose.override.yml):=20add=20confi?= =?UTF-8?q?guration=20for=20the=20celeryworker=20service=20to=20enable=20T?= =?UTF-8?q?raefik=20routing=20and=20expose=20port=207860=20for=20API=20end?= =?UTF-8?q?points=20=F0=9F=90=9B=20fix(docker-compose.yml):=20remove=20par?= =?UTF-8?q?allel=20test=20execution=20flag=20from=20the=20command=20for=20?= =?UTF-8?q?the=20test=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/docker-compose.override.yml | 11 +++++++++++ deploy/docker-compose.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deploy/docker-compose.override.yml b/deploy/docker-compose.override.yml index d6984c959..54fa69e9a 100644 --- a/deploy/docker-compose.override.yml +++ b/deploy/docker-compose.override.yml @@ -27,6 +27,10 @@ services: - traefik.http.routers.${STACK_NAME?Variable not set}-traefik-public-http.rule=Host(`${DOMAIN?Variable not set}`) - traefik.http.services.${STACK_NAME?Variable not set}-traefik-public.loadbalancer.server.port=80 + queue: + ports: + - "6379:6379" + pgadmin: ports: - "5050:5050" @@ -49,6 +53,13 @@ services: - traefik.http.routers.${STACK_NAME?Variable not set}-frontend-http.rule=PathPrefix(`/`) - traefik.http.services.${STACK_NAME?Variable not set}-frontend.loadbalancer.server.port=80 + celeryworker: + labels: + - traefik.enable=true + - traefik.constraint-label-stack=${TRAEFIK_TAG?Variable not set} + - traefik.http.routers.${STACK_NAME?Variable not set}-celeryworker-http.rule=PathPrefix(`/api/v1`) || PathPrefix(`/docs`) || PathPrefix(`/health`) + - traefik.http.services.${STACK_NAME?Variable not set}-celeryworker.loadbalancer.server.port=7860 + networks: traefik-public: # For local dev, don't expect an external Traefik network diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 30091b118..328fcfef4 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -234,7 +234,7 @@ services: build: context: ../ dockerfile: base.Dockerfile - command: pytest -vv -n auto + command: pytest -vv healthcheck: test: "exit 0"