Skip to content

Instantly share code, notes, and snippets.

@cristiano-pacheco
Created August 6, 2018 20:36
Show Gist options
  • Save cristiano-pacheco/49cd367bd6664a81621e248a928adfa3 to your computer and use it in GitHub Desktop.
Save cristiano-pacheco/49cd367bd6664a81621e248a928adfa3 to your computer and use it in GitHub Desktop.
Docker compose file example mongodb and rabbitmq
version: '2'
services:
mongo:
image: mongo:3.6.6
restart: always
mem_limit: 3G
container_name: orange_mongo
ports:
- "27017:27017"
volumes:
- ./mongodb/data:/data/db
- ./mongodb/config:/data/configdb
rabbitmq:
image: rabbitmq:3-management
container_name: orange_rabbitmq
ports:
- "8080:15672"
volumes:
- ./rabbitmq/storage:/var/lib/rabbitmq
environment:
- RABBITMQ_ERLANG_COOKIE=secretkey
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- CLUSTERED=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment