Last active
August 12, 2020 02:18
-
-
Save matthewoestreich/c00a36ae3bc5a8eae729250377d4df84 to your computer and use it in GitHub Desktop.
docker-compose for rabbitmq with mgmt web interface
This file contains hidden or 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
# -------------------------------------- # | |
# ------------- How to use ------------- # | |
# -------------------------------------- # | |
# 1) Run: docker-compose up -d | |
# 2) Go to: http://localhost:15672 | |
# 3) Default Creds: guest/guest` (obviously, this is if you don't use the `environment` vars below) | |
# rabbitmq port list at EOF | |
version: "3.7" | |
services: | |
rabbitmq3: | |
container_name: '<rabbitmq-container-name>' | |
# rabbitmq image with mgmt web interface built-in | |
image: rabbitmq:3-management | |
environment: | |
# Change this to some secret code | |
RABBITMQ_ERLANG_COOKIE: '<secret-cookie-here>' | |
# RABBITMQ_DEFAULT_USER: '<default-username>' | |
# RABBITMQ_DEFAULT_PASS: '<default-password>' | |
# See below for rabbitmq ports (taken from their docs) | |
ports: | |
- 15672:15672 # !! This port is required | |
# Uncomment to persist data on host volume | |
# volumes: | |
# - ./db-data:/var/lib/rabbitmq | |
# ------------------------------------------ # | |
# ------------- rabbitmq ports ------------- # | |
# ------------------------------------------ # | |
# 4369: epmd, a peer discovery service used by RabbitMQ nodes and CLI tools | |
# 5672, 5671: used by AMQP 0-9-1 and 1.0 clients without and with TLS | |
# 25672: used for inter-node and CLI tools communication (Erlang distribution server port) and is allocated from a dynamic range (limited to a single port by default, computed as AMQP port + 20000). Unless external connections on these ports are really necessary (e.g. the cluster uses federation or CLI tools are used on machines outside the subnet), these ports should not be publicly exposed. See networking guide for details. | |
# 35672-35682: used by CLI tools (Erlang distribution client ports) for communication with nodes and is allocated from a dynamic range (computed as server distribution port + 10000 through server distribution port + 10010). See networking guide for details. | |
# 15672: HTTP API clients, management UI and rabbitmqadmin (only if the management plugin is enabled) | |
# 61613, 61614: STOMP clients without and with TLS (only if the STOMP plugin is enabled) | |
# 1883, 8883: (MQTT clients without and with TLS, if the MQTT plugin is enabled | |
# 15674: STOMP-over-WebSockets clients (only if the Web STOMP plugin is enabled) | |
# 15675: MQTT-over-WebSockets clients (only if the Web MQTT plugin is enabled) | |
# 15692: Prometheus metrics (only if the Prometheus plugin is enabled) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment