This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
370 lines (351 loc) · 8.92 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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
version: "3.7"
volumes:
prometheus-data: {}
grafana-data: {}
db-data: {}
rasa-data: {}
services:
app:
image: jarvis
container_name: jarvis-app
restart: unless-stopped
build:
args:
user: "${USER_NAME}"
uid: "${USER_ID}"
context: .
dockerfile: ./interface/laravel/Dockerfile
environment:
SERVICE_NAME: app
volumes:
- ./interface/laravel:/var/www
depends_on:
db:
condition: service_healthy
networks:
- jarvis
db:
image: mysql:8.0
container_name: jarvis-db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
command: --innodb_buffer_pool_size=5M --innodb_log_buffer_size=256K --max_connections=10 --key_buffer_size=8 --thread_cache_size=0 --host_cache_size=0
command: --innodb_ft_cache_size=1600000 --innodb_ft_total_cache_size=32000000 --thread_stack=131072 --sort_buffer_size=32K --read_buffer_size=8200
command: --read_rnd_buffer_size=8200 --max_heap_table_size=16K --tmp_table_size=1K --bulk_insert_buffer_size=0 --join_buffer_size=128
command: --net_buffer_length=1K --innodb_sort_buffer_size=64K --binlog_cache_size=4K --binlog_stmt_cache_size=4K --performance_schema=off
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 5s
networks:
- jarvis
nginx:
image: nginx
container_name: nginx
restart: unless-stopped
build:
context: .
dockerfile: ./system/nginx/Dockerfile
ports:
- 80:80
- 443:443
- 8083:8083
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
volumes:
- ./interface/laravel:/var/www
- ./system/certbot/conf:/etc/letsencrypt:rw
- ./system/certbot/www:/var/www/certbot
depends_on:
- app
networks:
- jarvis
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./system/certbot/conf:/etc/letsencrypt:rw
- ./system/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
volumes:
- prometheus-data:/prometheus
- ./monitoring/prometheus/:/etc/prometheus/
depends_on:
- cadvisor
networks:
- jarvis
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: always
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
networks:
- jarvis
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
- ./interface/grafana/provisioning:/etc/grafana/provisioning
env_file:
- ./interface/grafana/config.monitoring
depends_on:
- prometheus
networks:
- jarvis
rasa:
image: rasa/rasa:main-spacy-en
container_name: rasa
user: "${USER_ID}"
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
ports:
- 5005:5005
volumes:
- ./system/rasa:/app
command:
- run
- --debug
- --enable-api
- --cors
- "*"
networks:
- jarvis
depends_on:
postgres:
condition: service_healthy
rasa-action-server:
image: rasa-action-server
container_name: rasa-action-server
build:
args:
user: "${USER_NAME}"
uid: "${USER_ID}"
context: .
dockerfile: ./system/rasa/Dockerfile
environment:
HOMEASSISTANT_TOKEN: "${HOMEASSISTANT_TOKEN}"
working_dir: /app
command:
- start
- --debug
- --actions
- actions
- --cors
- "*"
ports:
- 5055:5055
volumes:
- ./system/rasa/actions:/app/actions
depends_on:
- rasa
networks:
- jarvis
huggingface:
image: huggingface
container_name: huggingface
build:
args:
user: "${USER_NAME}"
uid: "${USER_ID}"
context: .
dockerfile: ./system/huggingface/Dockerfile
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
working_dir: /app
volumes:
- ./system/huggingface:/app
ports:
- 5065:5065
networks:
- jarvis
postgres:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- rasa-data:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- jarvis
#This is a temporary solution for viewing the data rasa is storing
pgweb:
image: sosedoff/pgweb
container_name: pgweb
restart: always
user: "${USER_ID}"
ports:
- 8081:8081
links:
- postgres:postgres
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable
depends_on:
postgres:
condition: service_healthy
networks:
- jarvis
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: homeassistant
restart: always
volumes:
- ./system/home-assistant:/config
ports:
- 8123:8123
privileged: true
environment:
TZ: "America/New_York"
networks:
- jarvis
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
networks:
- jarvis
restart: always
wings:
image: ghcr.io/pterodactyl/wings:v1.11.0
container_name: wings
env_file:
- .env
restart: always
networks:
- jarvis
- wings0
ports:
- 2022:2022
tty: true
environment:
TZ: "UTC"
WINGS_UID: 988
WINGS_GID: 988
WINGS_USERNAME: pterodactyl
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/containers/:/var/lib/docker/containers/
- /tmp/pterodactyl/:/tmp/pterodactyl/
- ./system/certbot/conf/live/good-spiders.com/fullchain.pem:/etc/letsencrypt/live/wings.good-spiders.com/fullchain.pem:ro
- ./system/certbot/conf/live/good-spiders.com/privkey.pem:/etc/letsencrypt/live/wings.good-spiders.com/privkey.pem:ro
- ./game-servers/wings/data/wings/etc/:/etc/pterodactyl/
- ./game-servers/wings/logs:/var/log/pterodactyl/
- ./game-servers/wings/data:/data
- /var/lib/pterodactyl/:/var/lib/pterodactyl/
depends_on:
- panel
panel:
image: ghcr.io/pterodactyl/panel:v1.11.2
container_name: panel
restart: always
environment:
SERVICE_NAME: panel
env_file:
- ./game-servers/panel/var/.env
networks:
- jarvis
links:
- db
- redis
volumes:
- ./system/certbot/conf:/etc/letsencrypt
- ./game-servers/panel/var:/app/var
- ./game-servers/panel/logs/:/app/storage/logs
- ./game-servers/panel/nginx/:/etc/nginx/conf.d/
depends_on:
db:
condition: service_healthy
plex:
image: plexinc/pms-docker
restart: unless-stopped
container_name: plexms
ports:
- 32400:32400
- 3005:3005
- 8324:8324
- 32469:32469
- 1900:1900
- 32410:32410
- 32412:32412
- 32413:32413
- 32414:32414
environment:
- PUID=${USER_ID}
- PGID=${USER_ID}
- TZ=America/New_York
- PLEX_CLAIM="${PLEX_CLAIM}"
- ADVERTISE_IP="${PLEX_ADVERTISE_IP}"
- HOSTNAME="PlexServer"
volumes:
- ./plexms/config:/config
- ./plexms/transcodes:/transcode
- ./plexms/media:/media
networks:
local:
external: false
jarvis:
name: jarvis
driver: bridge
ipam:
config:
- subnet: 172.30.0.1/16
gateway: 172.30.0.1
wings0:
name: wings0
driver: bridge
ipam:
config:
- subnet: "172.21.0.0/16"
driver_opts:
com.docker.network.bridge.name: wings0