chassis-agent/docker-compose-rabbitmq.yml

42 lines
907 B
YAML
Raw Permalink Normal View History

2024-02-04 17:27:41 +08:00
version: "3.8"
2023-05-29 16:10:41 +08:00
services:
rabbitmq:
2024-03-10 17:16:29 +08:00
image: rabbitmq:3.13.0-management
2023-05-29 16:10:41 +08:00
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}
2024-02-05 15:59:53 +08:00
deploy:
resources:
reservations:
cpus: '0.10'
2024-03-10 13:10:47 +08:00
memory: 300M
2024-02-05 15:59:53 +08:00
limits:
2024-03-06 11:52:36 +08:00
cpus: '0.50'
memory: 1024M
2024-02-05 15:59:53 +08:00
update_config:
failure_action: rollback
placement:
constraints:
- 'node.role == manager'
2023-12-06 01:42:24 +08:00
networks:
2024-02-04 17:27:41 +08:00
- 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:
2024-02-04 17:27:41 +08:00
diyue-network:
driver: overlay
attachable: true