Created
April 28, 2021 23:43
-
-
Save alefhsousa/88accdfd3ffe8586237433a9e6e92948 to your computer and use it in GitHub Desktop.
mongo-express-mysql-mongo-rabbitmq-docker-compose
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: '3' | |
services: | |
mysql.monolito: | |
image: mysql:5.7 | |
ports: | |
- "3307:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: caelum123 | |
MYSQL_DATABASE: eats | |
volumes: | |
- mysql.eats.monolito:/var/lib/mysql | |
mysql.pagamento: | |
image: mysql:5.7 | |
ports: | |
- "3308:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: caelum123 | |
MYSQL_DATABASE: eats_pagamento | |
MYSQL_USER: pagamento | |
MYSQL_PASSWORD: pagamento123 | |
volumes: | |
- mysql.eats.pagamento:/var/lib/mysql | |
mongo.distancia: | |
image: mongo:3.6 | |
ports: | |
- "27018:27017" | |
volumes: | |
- mongo.eats.distancia:/data/db | |
mongo-express: | |
image: mongo-express | |
ports: | |
- 8091:8081 | |
environment: | |
ME_CONFIG_MONGODB_SERVER: mongo.distancia | |
ME_CONFIG_MONGODB_PORT: 27017 | |
depends_on: | |
- mongo.distancia | |
restart: on-failure | |
rabbitmq: | |
image: "rabbitmq:3-management" | |
ports: | |
- "5672:5672" | |
- "8055:15672" | |
environment: | |
RABBITMQ_DEFAULT_USER: eats | |
RABBITMQ_DEFAULT_PASS: caelum123 | |
volumes: | |
- rabbitmq.eats:/var/lib/rabbitmq | |
volumes: | |
mysql.eats.monolito: | |
mysql.eats.pagamento: | |
mongo.eats.distancia: | |
rabbitmq.eats: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment