🔧 chore(docker-compose.override.yml): rename 'queue' service to 'result_backend' for better clarity and consistency

🔧 chore(docker-compose.yml): add 'broker' service for RabbitMQ management console
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-23 23:26:25 -03:00
commit d6262b0b86
2 changed files with 28 additions and 13 deletions

View file

@ -27,7 +27,7 @@ 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:
result_backend:
ports:
- "6379:6379"
@ -60,6 +60,18 @@ services:
- 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
tests:
extends:
file: docker-compose.yml
service: backend
env_file:
- .env
build:
context: ../
dockerfile: base.Dockerfile
command: pytest -vv
healthcheck:
test: "exit 0"
networks:
traefik-public:
# For local dev, don't expect an external Traefik network