🐛 fix(docker-compose.override.yml): expose Redis port 6379 for the queue service

 feat(docker-compose.override.yml): add configuration for the celeryworker service to enable Traefik routing and expose port 7860 for API endpoints
🐛 fix(docker-compose.yml): remove parallel test execution flag from the command for the test service
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-22 10:46:18 -03:00
commit 8557a728d6
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -234,7 +234,7 @@ services:
build:
context: ../
dockerfile: base.Dockerfile
command: pytest -vv -n auto
command: pytest -vv
healthcheck:
test: "exit 0"