-
-
Save novomirskoy/cccba5abdd795f3288076ede236d2c1d to your computer and use it in GitHub Desktop.
docker-compose rabbitmq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RABBITMQ_HOST=rabbitmq | |
RABBITMQ_DEFAULT_USER=developer | |
RABBITMQ_DEFAULT_PASS=developer | |
RABBITMQ_DEFAULT_VHOST=/ | |
RABBITMQ_PORT_WEB=15672 | |
RABBITMQ_PORT=5672 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
rabbitmq: | |
image: rabbitmq:management | |
hostname: ${RABBITMQ_HOST} | |
environment: | |
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER} | |
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS} | |
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST} | |
ports: | |
- "${RABBITMQ_PORT_WEB}:15672" | |
- "${RABBITMQ_PORT}:5672" | |
volumes: | |
- rabbitmq.data:/var/lib/rabbitmq | |
networks: | |
default: | |
aliases: | |
- ${RABBITMQ_HOST} | |
healthcheck: | |
test: ["CMD", "rabbitmqctl", "node_health_check"] | |
interval: 30s | |
timeout: 20s | |
retries: 10 | |
volumes: | |
rabbitmq.data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment