-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "2.4"
services:
mongo:
image: mongo
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- mongo_multirepo_data:/data/db
networks:
- mongo_network
ports:
- 27017:27017
mongo-express:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_USER}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_PASSWORD}
depends_on:
- mongo
networks:
- mongo_network
ports:
- 20048:8081
envio-app:
image: envio-app:test
environment:
- MONGO_USER=${MONGO_USER}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- DB_NAME=${DB_NAME}
- DB_TYPE=${DB_TYPE}
depends_on:
- mongo
networks:
- mongo_network
ports:
- 8000:8000
volumes:
- ./src:/src
networks:
mongo_network:
driver: bridge
volumes:
mongo_multirepo_data: