docker run -d --name my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
###########################
# RABBITMQ SERVICES
###########################
rabbitmq:
image: rabbitmq:3-management-alpine
restart: on-failure
healthcheck:
start_period: 60s
timeout: 120s
interval: 30s
test: ifconfig | grep broadcast
env_file: .env
environment:
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_HOST}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USERNAME}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq_data:/var/lib/rabbitmq/data
- rabbitmq_data:/var/log/rabbitmq/log
networks:
- node_networks
docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq 10.2.4.201/rabbitmq
RABBITMQ_NODE_PORT=5672 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15672}]" RABBITMQ_NODENAME=rabbit rabbitmq-server -detached
RABBITMQ_NODE_PORT=5673 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15673}]" RABBITMQ_NODENAME=hare rabbitmq-server -detached
RABBITMQ_NODE_PORT=5674 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15674}]" RABBITMQ_NODENAME=john rabbitmq-server -detached