Skip to content

Instantly share code, notes, and snippets.

@edr3x
Created March 22, 2024 17:35
Show Gist options
  • Save edr3x/f582edb685410638f2e2585265932ec7 to your computer and use it in GitHub Desktop.
Save edr3x/f582edb685410638f2e2585265932ec7 to your computer and use it in GitHub Desktop.
Rabbitmq with docker setup
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'
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
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