-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (50 loc) · 1.14 KB
/
docker-compose.yaml
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
53
54
version: '3.8'
services:
bank-manager-api:
image: bank-manager-api
container_name: bank-manager-api
restart: always
ports:
- "2000:8000"
networks:
- mongodb-network
depends_on:
- mongodb
mongodb:
image: mongo:4.4.18
container_name: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: jumpogpo
MONGO_INITDB_ROOT_PASSWORD: superadmin
ports:
- "27017:27017"
volumes:
- db_data:/data/db
- db_config:/data/configdb
networks:
- mongodb-network
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- 2020:8081
environment:
ME_CONFIG_BASICAUTH_USERNAME: jumpogpo
ME_CONFIG_BASICAUTH_PASSWORD: superadmin
ME_CONFIG_MONGODB_URL: mongodb://jumpogpo:superadmin@mongodb:27017/
networks:
- mongodb-network
depends_on:
- mongodb
volumes:
db_data:
name: mongodb-data
driver: local
db_config:
name: mongodb-config
driver: local
networks:
mongodb-network:
name: mongodb_default