42 lines
898 B
YAML
42 lines
898 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
rabbitmq:
|
|
image: 3.13.0-management
|
|
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}
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
cpus: '0.10'
|
|
memory: 300M
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 1024M
|
|
update_config:
|
|
failure_action: rollback
|
|
placement:
|
|
constraints:
|
|
- 'node.role == manager'
|
|
networks:
|
|
- diyue-network
|
|
|
|
|
|
volumes:
|
|
rabbitmq_data:
|
|
driver: local
|
|
rabbitmq_log:
|
|
driver: local
|
|
|
|
networks:
|
|
diyue-network:
|
|
driver: overlay
|
|
attachable: true |