-
-
Save vinnietech/e54937896bb20fa383bf15ec85831b0e to your computer and use it in GitHub Desktop.
docker-compose of mongodb and 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: '2' | |
services: | |
mongodb: | |
image: mongo:latest | |
container_name: mongodb | |
environment: | |
- 'MONGODB_USER=user' | |
- 'MONGODB_PASS=password!' | |
volumes: | |
- 'mongodb-data:/data/db' | |
ports: | |
- '27017:27017' | |
command: mongod --smallfiles | |
rabbitmq: | |
image: 'rabbitmq:3-management' | |
container_name: rabbitmq | |
hostname: 'rabbitmq' | |
environment: | |
RABBITMQ_ERLANG_COOKIE: 'SWQOKODSQALRPCLNMEQG' | |
RABBITMQ_DEFAULT_USER: 'rabbitmq' | |
RABBITMQ_DEFAULT_PASS: 'rabbitmq' | |
RABBITMQ_DEFAULT_VHOST: '/' | |
ports: | |
- '15672:15672' | |
- '5672:5672' | |
labels: | |
NAME: 'rabbitmq' | |
#volumes: | |
#- './enabled_plugins:/etc/rabbitmq/enabled_plugins' | |
#- './rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro' | |
#- './autocluster-0.4.1.ez:/usr/lib/rabbitmq/lib/rabbitmq_server-3.5.5/plugins/autocluster-0.4.1.ez' | |
volumes: | |
mongodb-data: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment