docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest rabbitmq:3-management-alpine
Last active
April 29, 2022 00:09
-
-
Save gterdem/1e488947525ab4187754367bde87ae7a to your computer and use it in GitHub Desktop.
Docker compose for rabbitmq
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
| version: "3.8" | |
| services: | |
| rabbitmq: | |
| container_name: rabbitmq_container | |
| image: rabbitmq:3-management-alpine | |
| ports: | |
| - "15672:15672" | |
| - "5672:5672" | |
| volumes: | |
| - rabbitmq_data:/var/lib/rabbitmq | |
| healthcheck: | |
| test: rabbitmq-diagnostics -q ping | |
| interval: 30s | |
| timeout: 30s | |
| retries: 3 | |
| volumes: | |
| rabbitmq_data: | |
| driver: local | |
| name: rabbitmq_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment