Created
August 6, 2018 20:36
-
-
Save cristiano-pacheco/49cd367bd6664a81621e248a928adfa3 to your computer and use it in GitHub Desktop.
Docker compose file example mongodb and rabbitmq
This file contains 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: | |
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