Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Last active June 20, 2022 18:54
Show Gist options
  • Save changhuixu/fab215e6a894de58d4aabe6f544376e5 to your computer and use it in GitHub Desktop.
Save changhuixu/fab215e6a894de58d4aabe6f544376e5 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: my-rabbit
volumes:
- ./rabbitmq/etc/definitions.json:/etc/rabbitmq/definitions.json
- ./rabbitmq/etc/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./rabbitmq/data:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit
- ./rabbitmq/logs:/var/log/rabbitmq/log
ports:
- 5672:5672
- 15672:15672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment