forked from alonitac/DockerProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
103 lines (93 loc) · 1.9 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.8'
services:
mongo_1:
container_name: mongo_1
image: ${MONGO_IMAGE}
ports:
- "27017:27017"
volumes:
- mongo_1_data:/data/db
env_file:
- .env
networks:
- mongoCluster
command: mongod --replSet myReplicaSet --bind_ip_all
mongo_2:
container_name: mongo_2
image: ${MONGO_IMAGE}
ports:
- "27018:27017"
volumes:
- mongo_2_data:/data/db
env_file:
- .env
networks:
- mongoCluster
command: mongod --replSet myReplicaSet --bind_ip_all
depends_on:
- mongo_1
mongo_3:
container_name: mongo_3
image: ${MONGO_IMAGE}
ports:
- "27019:27017"
volumes:
- mongo_3_data:/data/db
env_file:
- .env
networks:
- mongoCluster
command: mongod --replSet myReplicaSet --bind_ip_all
depends_on:
- mongo_1
- mongo_2
mongo_init:
container_name: mongo_init
image: ${MONGO_IMAGE}
depends_on:
- mongo_1
- mongo_2
- mongo_3
volumes:
- ./initiate-replica.sh:/docker-entrypoint-initdb.d/initiate-replica.sh:ro
env_file:
- .env
networks:
- mongoCluster
entrypoint: [ "/bin/bash", "/docker-entrypoint-initdb.d/initiate-replica.sh" ]
polybot:
container_name: polybot
image: ${POLYBOT_IMG_NAME}
ports:
- "8443:8443"
volumes:
- ~/.aws/credentials:/root/.aws/credentials:ro
env_file:
- .env
networks:
- mongoCluster
depends_on:
- mongo_3
yolo5_app:
container_name: yolo5_app
image: ${YOLO5_IMG_NAME}
ports:
- "8081:8081"
volumes:
- ~/.aws/credentials:/root/.aws/credentials:ro
env_file:
- .env
networks:
- mongoCluster
depends_on:
- mongo_3
networks:
mongoCluster:
driver: bridge
volumes:
mongo_1_data:
driver: local
mongo_2_data:
driver: local
mongo_3_data:
driver: local