Created
March 22, 2024 17:35
-
-
Save edr3x/f582edb685410638f2e2585265932ec7 to your computer and use it in GitHub Desktop.
Rabbitmq with docker setup
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.9" | |
networks: | |
app: | |
external: true | |
services: | |
rabbitmq: | |
image: rabbitmq:3.13.0-management-alpine | |
container_name: rabbitmq-server | |
networks: | |
- app | |
ports: | |
- 5672:5672 | |
- 15672:15672 | |
volumes: | |
- './mq-vol:/var/lib/rabbitmq' | |
- './rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf' |
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
PHONY: up down | |
up: | |
mkdir -p mq-vol | |
sudo chown -R 1001 mq-vol | |
docker compose up --build --detach | |
down: | |
docker compose down | |
exit 0 |
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
default_user = user | |
default_pass = Password123 | |
loopback_users.guest = false | |
listeners.tcp.default = 5672 | |
disk_free_limit.absolute = 1GB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment