Created
June 7, 2018 15:53
-
-
Save flightonary/0efae8081310f4a7f423376c48135cf8 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