23 lines
567 B
YAML
Executable File
23 lines
567 B
YAML
Executable File
services:
|
|
rabbitmq:
|
|
container_name: rabbitmq
|
|
image: rabbitmq:4.0.3-management-alpine
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxynet
|
|
env_file:
|
|
- ./config.env
|
|
volumes:
|
|
- ./rabbitmq:/var/lib/rabbitmq
|
|
stop_grace_period: 10s
|
|
ports:
|
|
- "5672:5672"
|
|
labels:
|
|
# WEB GUI
|
|
- "traefik.enable=true"
|
|
- "traefik.tcp.routers.mq.rule=HostSNI(`*`)"
|
|
- "traefik.tcp.services.mq.loadbalancer.server.port=15672"
|
|
- "traefik.tcp.routers.mq.entrypoints=rabbitmq-gui"
|
|
networks:
|
|
proxynet:
|
|
external: true |