2020-05-20 06:22:12 +00:00
|
|
|
services:
|
|
|
|
rabbitmq1:
|
2024-10-03 16:39:59 +00:00
|
|
|
image: rabbitmq:4.0.2-alpine
|
2020-05-20 06:22:12 +00:00
|
|
|
hostname: rabbitmq1
|
2024-10-03 16:39:59 +00:00
|
|
|
environment:
|
|
|
|
RABBITMQ_FEATURE_FLAGS: feature_flags_v2,message_containers
|
2021-04-30 12:22:37 +00:00
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${RABBITMQ_PORT:-5672}
|
2023-11-14 20:13:09 +00:00
|
|
|
- ${RABBITMQ_SECURE_PORT:-5671}
|
2021-05-17 11:16:16 +00:00
|
|
|
volumes:
|
|
|
|
- type: ${RABBITMQ_LOGS_FS:-tmpfs}
|
|
|
|
source: ${RABBITMQ_LOGS:-}
|
2021-05-18 11:02:23 +00:00
|
|
|
target: /rabbitmq_logs/
|
2023-10-09 18:33:03 +00:00
|
|
|
- "${RABBITMQ_COOKIE_FILE}:/var/lib/rabbitmq/.erlang.cookie"
|
2023-11-14 20:13:09 +00:00
|
|
|
- /misc/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
|
|
|
|
- /misc/rabbitmq/ca-cert.pem:/etc/rabbitmq/ca-cert.pem
|
|
|
|
- /misc/rabbitmq/server-cert.pem:/etc/rabbitmq/server-cert.pem
|
|
|
|
- /misc/rabbitmq/server-key.pem:/etc/rabbitmq/server-key.pem
|
2024-11-13 13:41:16 +00:00
|
|
|
- /misc/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
|
|
|
|
# https://www.rabbitmq.com/docs/monitoring#health-checks
|
|
|
|
healthcheck:
|
|
|
|
test: rabbitmq-diagnostics -q ping
|
|
|
|
interval: 10s
|
|
|
|
retries: 10
|
|
|
|
timeout: 2s
|