-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·105 lines (94 loc) · 2.12 KB
/
docker-compose.yml
File metadata and controls
executable file
·105 lines (94 loc) · 2.12 KB
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
104
105
version: "3.8"
services:
nginx:
build: "./containers/nginx"
ports:
- "80:80"
- "443:443"
container_name: "nginx"
networks:
- app
depends_on:
- spring1
- spring2
- spring3
restart: unless-stopped
spring1:
build: "./containers/spring"
container_name: "spring1"
environment:
- ID=1
networks:
- app
- db
restart: unless-stopped
spring2:
build: "./containers/spring"
container_name: "spring2"
environment:
- ID=2
networks:
- app
- db
restart: unless-stopped
spring3:
build: "./containers/spring"
container_name: "spring3"
environment:
- ID=3
networks:
- app
- db
restart: unless-stopped
node:
build: "./containers/node"
container_name: "node"
ports:
- "8080:8080"
networks:
- app
- db
restart: unless-stopped
mongo1:
build: "./containers/mongo"
container_name: "mongo1"
networks:
- db
command: mongod --replSet "rs0" --bind_ip_all --auth --keyFile /data/security.keyFile
depends_on:
- mongo2
- mongo3
volumes:
- ./containers/mongo/mongo-init.js:/scripts/mongo-init.js
- ./containers/mongo/rs-init.sh:/scripts/rs-init.sh
- ./containers/mongo/security.keyFile:/data/security.keyFile
restart: unless-stopped
mongo2:
build: "./containers/mongo"
container_name: "mongo2"
networks:
- db
command: mongod --replSet "rs0" --bind_ip_all --auth --keyFile /data/security.keyFile
volumes:
- ./containers/mongo/security.keyFile:/data/security.keyFile
restart: unless-stopped
mongo3:
build: "./containers/mongo"
container_name: "mongo3"
networks:
- db
command: mongod --replSet "rs0" --bind_ip_all --auth --keyFile /data/security.keyFile
volumes:
- ./containers/mongo/security.keyFile:/data/security.keyFile
restart: unless-stopped
rabbitmq:
build: "./containers/rabbitmq"
container_name: "rabbitmq"
ports:
- "5000:15692"
networks:
- app
networks:
app:
db:
driver: bridge