docker-compose RabbitMQ Generator
Generate a ready-to-use docker-compose for RabbitMQ with the management UI enabled, user, password and ports. Spin up your local message broker instantly.
YAML
—
RabbitMQ with the management dashboard enabled
RabbitMQ is one of those pieces where the version with the management dashboard is worth far more than the plain one during development: you can see queues, publish a test message, inspect what got stuck and wipe everything with a click. The image with the dashboard ships ready, and the difference is one tag in the name.
Enter a user and password and the page assembles the service, exposing both ports: the protocol one, where the application connects, and the dashboard one, which opens in a browser. The credentials go in as environment variables and replace the default pair — which is public and well known, and should therefore never survive into anything reachable over a network.
Worth knowing that without a declared volume everything is lost when the container is recreated: queues, exchanges, persisted messages and users created through the dashboard. In development that is often desirable, since it guarantees a clean slate. When it is not, RabbitMQ's data directory needs mounting as a volume — and remember that the node name forms part of the data identity, so changing the container name can leave RabbitMQ unable to recognise the old volume.
Frequently asked questions
Which port is the dashboard on?
Do messages survive a restart?
Can queues be created at startup?
Related Tools
docker-compose MongoDB Generator
Generates a ready-to-use docker-compose for MongoDB, with root user and password, port 27017 published and a persistent volume. You create the database after it starts.
docker-compose MySQL Generator
Generates a ready-to-use docker-compose for MySQL, with the root password, port 3306 published and a persistent volume. Pick the image tag and start the database.
docker-compose Redis Generator
Generates a ready-to-use docker-compose for Redis, publishing port 6379 with a persistent volume. Pick the image tag and spin up your local cache or broker with one command.
Docker Run → Compose
Convert a docker run command to the equivalent docker-compose.yml automatically. Maps ports, volumes, environment variables, networks and restart policies.
docker-compose PostgreSQL Generator
Generate a ready-to-use docker-compose for PostgreSQL, with user, password, database and a persistent volume set up. Spin up your local DB with one command.
docker-compose Elasticsearch Generator
Generate a ready-to-use docker-compose for single-node Elasticsearch, with memory and volume configured. Spin up your local search engine with one command.