chassis-agent/docker-compose-rabbitmq.yml

35 lines
737 B
YAML
Raw Normal View History

2024-02-04 17:27:41 +08:00
version: "3.8"
2023-05-29 16:10:41 +08:00
services:
rabbitmq:
image: rabbitmq:3-management
container_name: 'rabbitmq'
hostname: 'rabbitmq'
ports:
- "5672:5672"
- "15672:15672"
- "25672:25672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- rabbitmq_log:/var/log/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-admin}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin}
2023-12-06 18:15:49 +08:00
restart: always
2023-12-06 01:42:24 +08:00
networks:
2024-02-04 17:27:41 +08:00
- rabbitmq_network
- diyue-network
2023-05-29 16:10:41 +08:00
volumes:
rabbitmq_data:
driver: local
rabbitmq_log:
2023-12-06 01:42:24 +08:00
driver: local
networks:
rabbitmq_network:
2024-02-04 17:27:41 +08:00
driver: bridge
diyue-network:
driver: overlay
attachable: true