Skip to content

Instantly share code, notes, and snippets.

@vinnietech
Forked from flightonary/docker-compose.yml
Created March 26, 2020 13:24
Show Gist options
  • Save vinnietech/e54937896bb20fa383bf15ec85831b0e to your computer and use it in GitHub Desktop.
Save vinnietech/e54937896bb20fa383bf15ec85831b0e to your computer and use it in GitHub Desktop.
docker-compose of mongodb and rabbitmq
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