-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
214 lines (202 loc) · 4.59 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
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
version: '3.8'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
networks:
- mynetwork
restart: always
flask_api_forecasting:
build: ./flask_api_forecasting
container_name: flask_api_forecasting
command: sh -c "python FlaskApiForecasting.py & python forecasting_service.py & python ForecastingServiceServer.py & python MongoApi.py & python HistForecast.py & python HistoryBDC.py"
ports:
- "5080:5080"
- "5600:5600"
- "3055:3055"
- "4650:4650"
- "4660:4660"
- "4770:4770"
volumes:
- ./flask_api_forecasting:/app
depends_on:
- redis
networks:
- mynetwork
environment:
- TF_ENABLE_ONEDNN_OPTS=0
- TF_CPP_MIN_LOG_LEVEL=2
- REDIS_HOST=redis
- REDIS_PORT=6379
-
- POSTGRES_HOST=
- POSTGRES_DB=sandbox
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
node_api_server:
build: ./node_api_server
container_name: node_api_server
command: npm start
ports:
- "3030:3030"
- "3040:3040"
volumes:
- ./node_api_server:/app
depends_on:
- redis
networks:
- mynetwork
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=
discord_api:
build: ./discord_api
container_name: discord_api
command: sh -c "python monitor.py & python mongoapi.py & python postgresapi.py"
ports:
- "5550:5550"
volumes:
- ./discord_api:/app
depends_on:
- redis
networks:
- mynetwork
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=
- POSTGRES_HOST=
- POSTGRES_DB=sandbox
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
rune_api:
build: ./rune_api
container_name: rune_api
command: sh -c "python app.py & python log_monitor.py"
ports:
- "5540:5540"
volumes:
- ./rune_api:/app
depends_on:
- redis
networks:
- mynetwork
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=
- POSTGRES_HOST=
- POSTGRES_DB=sandbox
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5540/status"]
interval: 30s
timeout: 10s
retries: 5
training_model_module:
build: ./training_model_module
container_name: training_model_module
ports:
- "5100:5100"
volumes:
- ./training_model_module:/app
depends_on:
- redis
networks:
- mynetwork
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=
- POSTGRES_HOST=
- POSTGRES_DB=sandbox
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5100"]
interval: 30s
timeout: 10s
retries: 5
react_app:
build: ./react_app
container_name: react_app
command: serve -s build -l 3000
ports:
- "3000:3000"
volumes:
- ./react_app:/app
depends_on:
- flask_api_forecasting
- node_api_server
- discord_api
- rune_api
- training_model_module
networks:
- mynetwork
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=
- POSTGRES_HOST=
- POSTGRES_DB=sandbox
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 5
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- react_app
- flask_api_forecasting
- node_api_server
- discord_api
- rune_api
- training_model_module
networks:
- mynetwork
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"
networks:
- mynetwork
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3001:3000"
networks:
- mynetwork
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
cadvisor:
image: google/cadvisor:latest
container_name: cadvisor
ports:
- "8080:8080"
networks:
- mynetwork
volumes:
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
mynetwork:
driver: bridge