-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose.yml
62 lines (58 loc) · 1.15 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
53
54
55
56
57
58
59
60
61
62
version: '3.5'
services:
mdbS1:
image: mongo:latest
command: mongod --replSet mdb_repSet
deploy:
placement:
constraints:
- "node.hostname == worker01"
networks:
- traefik
volumes:
- mongodb_datav1:/data/db
- mongodb_configv1:/data/configdb
networks:
- mdbnw
mdbS2:
image: mongo:latest
command: mongod --replSet mdb_repSet
deploy:
placement:
constraints:
- "node.hostname == worker01"
networks:
- traefik
#ports:
# - "27017:27017"
volumes:
- mongodb_datav2:/data/db
- mongodb_configv2:/data/configdb
networks:
- mdbnw
mdbS3:
image: mongo:latest
command: mongod --replSet mdb_repSet
deploy:
placement:
constraints:
- "node.hostname == worker01"
networks:
- traefik
#ports:
# - "27017:27017"
volumes:
- mongodb_datav3:/data/db
- mongodb_configv3:/data/configdb
networks:
- mdbnw
volumes:
mongodb_datav1:
mongodb_configv1:
mongodb_datav2:
mongodb_configv2:
mongodb_datav3:
mongodb_configv3:
networks:
mdbnw:
name: mdbnw