RabbitMQ
Makefile
update:
docker-compose up -d
.env
TRAEFIK_URL_RABBITMQ=rabbitmq.clients.xelyos.fr
DOCKER_TRAEFIK_NETWORK=traefik_network
###> RABBITMQ/ACCESS ###
RABBITMQ_USER=aros
RABBITMQ_PASSWORD=aros
###< RABBITMQ/ACCESS ###
docker-compose.yaml
networks:
traefik_network:
name: ${DOCKER_TRAEFIK_NETWORK}
external: true
services:
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- "5672:5672" # Port pour les connexions AMQP
# - "15672:15672" # Port pour l'interface de gestion
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PROJECT_IDENTIFIER}-rabbitmq.entrypoints=websecure"
- "traefik.http.routers.${PROJECT_IDENTIFIER}-rabbitmq.rule=Host(`${TRAEFIK_URL_RABBITMQ}`)"
- "traefik.http.routers.${PROJECT_IDENTIFIER}-rabbitmq.tls.certresolver=myresolver"
- "traefik.http.services.${PROJECT_IDENTIFIER}-rabbitmq.loadbalancer.server.port=15672"
- "traefik.docker.network=traefik_network"
networks:
- traefik_network
volumes:
- ./data:/var/