forked from React-Automation-Studio/React-Automation-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
240 lines (222 loc) · 5.95 KB
/
docker-compose-dev.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
version: '3.2'
services:
frontendserverdev:
env_file: .env
build:
context: ./
dockerfile: docker/frontendserverDev/Dockerfile
volumes:
- ./certificates:/certificates/
- ./ReactApp/package.json:/frontendserverAppDev/package.json
- ./ReactApp/src:/frontendserverAppDev/src
- ./ReactApp/public:/frontendserverAppDev/public
restart: always
ports:
- "3001:3000"
pvserver1:
build:
context: ./
dockerfile: docker/pvserver/Dockerfile
restart: always
network_mode: host
tty: true
stdin_open: true
env_file: .env
environment:
- ALARM_DATABASE=localhost
- ALARM_DATABASE_REPLICA_SET_NAME=devrs
- LOADSAVE_DATABASE=localhost
- LOADSAVE_DATABASE_REPLICA_SET_NAME=devrs
- ADMIN_DATABASE=localhost
- ADMIN_DATABASE_REPLICA_SET_NAME=devrs
- WATCH_DEBUG_DATABASE=localhost
- WATCH_DEBUG_DATABASE_REPLICA_SET_NAME=devrs
- DEMO_ARCHIVER=http://localhost:17668
- pvServerLogLevel=INFO
- pvServerLogFile=/pvServer/log/pvServerLogFile
- pvServerPort=9001
- pvServerURL=http://127.0.0.1
volumes:
- ./certificates:/certificates/
- ./log/:/pvServer/log
- ./build:/pvServer/build
nginx:
image: nginx:1.19.6
restart: always
network_mode: host
depends_on:
- pvserver1
entrypoint:
- /custom/setupNginx.dev.sh
- /docker-entrypoint.sh
command: ["nginx", "-g", "daemon off;"]
volumes:
- ./nginx/setupNginx.dev.sh:/custom/setupNginx.dev.sh
- ./nginx/nginx.dev.conf:/custom/nginx.dev.conf
- ./nginx/nginx.httpredirect.conf:/custom/nginx.httpredirect.conf
- ./build/styleguide:/var/www/styleguide
- ./certificates:/etc/nginx/certificates
env_file: .env
unsecurestylguidepvserver:
build:
context: ./
dockerfile: docker/pvserver/Dockerfile
restart: always
network_mode: host
env_file: .env
environment:
- pvServerURL=http://127.0.0.1
- pvServerPort=5001
- REACT_APP_EnableLogin=false
- DEMO_ARCHIVER=http://localhost:17668
- no_proxy
volumes:
- ./certificates:/certificates/
demoioc:
build:
context: ./
dockerfile: docker/demoioc/Dockerfile
tty: true
stdin_open: true
restart: always
network_mode: host
styleguide:
build:
context: ./
dockerfile: docker/styleguide/Dockerfile
env_file: .env
environment:
- pvServerPort=5001
- REACT_APP_EnableLogin=false
volumes:
- ./build/styleguide:/build/
signalcli:
build:
context: ./
dockerfile: docker/signalcli/Dockerfile
hostname: signalcli
restart: always
network_mode: "host"
stdin_open: true
tty: true
env_file: .env
volumes:
- "./signalcli/signal-cli-config:/srv/signal/.local/share/signal-cli"
initializealarmhandlerdb:
build:
context: ./
dockerfile: docker/alarmHandlerDbInit/Dockerfile
hostname: initializealarmhandlerdb
restart: on-failure
network_mode: "host"
depends_on:
- mongosetup
stdin_open: true
tty: true
env_file: .env
alarmhandlerserver:
build:
context: ./
dockerfile: docker/alarmHandlerServer/Dockerfile
hostname: alarmhandlerserver
restart: always
depends_on:
- initializealarmhandlerdb
network_mode: "host"
stdin_open: true
tty: true
env_file: .env
volumes:
- ./log/:/usr/src/app/log
mongo1:
image: mongo:4.2.3-bionic
hostname: mongo1
restart: always
network_mode: "host"
env_file: .env
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USERNAME-admin}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD-password}
logging:
driver: "none"
volumes:
- "mongo-db-data1:/data/db"
- "mongo-db-configdb1:/data/configdb"
command: "--bind_ip_all --port 27017 --replSet ${REPLICA_SET_NAME-devrs}"
mongo2:
image: mongo:4.2.3-bionic
hostname: mongo2
restart: always
network_mode: "host"
env_file: .env
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USERNAME-admin}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD-password}
logging:
driver: "none"
volumes:
- "mongo-db-data2:/data/db"
- "mongo-db-configdb2:/data/configdb"
command: "--bind_ip_all --port 27018 --replSet ${REPLICA_SET_NAME-devrs}"
mongo3:
image: mongo:4.2.3-bionic
hostname: mongo3
restart: always
network_mode: "host"
env_file: .env
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USERNAME-admin}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD-password}
logging:
driver: "none"
volumes:
- "mongo-db-data3:/data/db"
- "mongo-db-configdb3:/data/configdb"
command: "--bind_ip_all --port 27019 --replSet ${REPLICA_SET_NAME-devrs}"
mongosetup:
build:
context: ./
dockerfile: docker/mongoSetup/Dockerfile
hostname: mongosetup
restart: on-failure
network_mode: "host"
depends_on:
- mongo1
- mongo2
- mongo3
stdin_open: true
tty: true
env_file: .env
initializeloadsavedb:
env_file: .env
environment:
- LOADSAVE_DATABASE=localhost
- LOADSAVE_DATABASE_REPLICA_SET_NAME=devrs
build:
context: ./
dockerfile: docker/loadSaveDbInit/Dockerfile
network_mode: "host"
tty: true
stdin_open: true
depends_on:
- mongosetup
initializeadmindb:
env_file: .env
environment:
- ADMIN_DATABASE=localhost
- ADMIN_DATABASE_REPLICA_SET_NAME=devrs
build:
context: ./
dockerfile: docker/adminDbInit/Dockerfile
network_mode: "host"
tty: true
stdin_open: true
depends_on:
- mongosetup
volumes:
mongo-db-data1:
mongo-db-configdb1:
mongo-db-data2:
mongo-db-configdb2:
mongo-db-data3:
mongo-db-configdb3: