This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
executable file
·254 lines (230 loc) · 4.92 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
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
version: "3.7"
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: 1sampai8
MYSQL_DATABASE: Vtuber
MYSQL_USER: vtuber
MYSQL_PASSWORD: kano2525
restart: on-failure
command: mysqld --sql_mode=""
networks:
- go_simp-net
multi_tor:
image: justhumanz/go-multitor
networks:
- go_simp-net
db_migrate:
build: ./service/migrate
image: go-simp-db_migrate
depends_on:
- mysql
restart: on-failure
networks:
- go_simp-net
bilibili-fanart:
build: ./service/fanart/bilibili
image: go-simp-bilibili-fanart
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
twitter-fanart:
build: ./service/fanart/twitter
image: go-simp-twitter-fanart
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
pixiv-fanart:
build: ./service/fanart/pixiv
image: go-simp-pixiv-fanart
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
livestream-livebili:
build: ./service/livestream/bilibili/live
image: go-simp-livestream-livebili
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
livestream-spacebili:
build: ./service/livestream/bilibili/space
image: go-simp-livestream-spacebili
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
livestream-youtube:
build: ./service/livestream/youtube/checker
image: go-simp-livestream-youtube
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
livestream-youtube_counter:
build: ./service/livestream/youtube/counter
image: go-simp-livestream-youtube_counter
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
livestream-twitch:
build: ./service/livestream/twitch
image: go-simp-livestream-twitch
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
subscriber:
build: ./service/subscriber/
image: go-simp-subscriber
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
environment:
- PrometheusURL=https://prometheus.humanz.moe
networks:
- go_simp-net
utility:
build: ./service/utility/
image: go-simp-utility
depends_on:
- mysql
- db_migrate
- multi_tor
command: go run .
restart: on-failure
networks:
- go_simp-net
frontend:
build: ./service/frontend/
image: go-simp-frontend
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
environment:
- PrometheusURL=https://prometheus.humanz.moe
networks:
- go_simp-net
guild:
build: ./service/guild/
image: go-simp-guild
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
networks:
- go_simp-net
pilot:
build: ./service/pilot/
image: go-simp-pilot
depends_on:
- mysql
- db_migrate
- multi_tor
restart: on-failure
volumes:
- ./config.toml:/app/Go-Simp/config.toml
networks:
- go_simp-net
# yotube-scrap:
# build: service/yt-scrap
# image: yt-scrap
# env_file:
# - ./.env
# networks:
# - go_simp-net
static_files:
build: ./Img/
networks:
- go_simp-proxy
go_simp_web:
build: service/web-vue
image: go-simp-web
env_file:
- ./.env
depends_on:
- rest_api
restart: on-failure
networks:
- go_simp-proxy
rest_api:
build: service/rest-api
image: go-simp-api
working_dir: /app/Go-Simp/service/rest-api
depends_on:
- redis
command: go run .
restart: on-failure
ports:
- "2525:2525"
networks:
- go_simp-proxy
- go_simp-net
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis_data:/bitnami/redis/data/
networks:
- go_simp-net
go_simp_prediction:
build: service/prediction
image: go-simp-prediction
environment:
- PrometheusURL=https://prometheus.humanz.moe
restart: on-failure
networks:
- go_simp-proxy
prometheus:
image: prom/prometheus
ports:
- "8080:8080"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/etc/prometheus
networks:
- go_simp-proxy
- go_simp-net
networks:
go_simp-proxy:
external: true
go_simp-net:
external: false
volumes:
redis_data:
prometheus_data: