-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
449 lines (435 loc) · 12 KB
/
docker-compose.yml
File metadata and controls
449 lines (435 loc) · 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
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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
services:
tailscale:
image: tailscale/tailscale:v1.80.3
container_name: tailscale
network_mode: "host"
cap_add:
- NET_ADMIN
- NET_RAW
security_opt:
- no-new-privileges:true
volumes:
- /dev/net/tun:/dev/net/tun
- ./tailscale-state:/var/lib/tailscale
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_EXTRA_ARGS=--accept-routes
restart: unless-stopped
deploy:
resources:
limits:
memory: 128m
healthcheck:
test: ["CMD", "tailscale", "status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
gluetun:
image: qmcgaw/gluetun:v3.40.0
container_name: gluetun
cap_add:
- NET_ADMIN
security_opt:
- no-new-privileges:true
devices:
- /dev/net/tun:/dev/net/tun
ports:
- ${QBIT_PORT}:${QBIT_PORT}
- ${SONARR_PORT}:${SONARR_PORT}
- ${PROWLARR_PORT}:${PROWLARR_PORT}
- ${FLARESOLVERR_PORT}:${FLARESOLVERR_PORT}
- ${RADARR_PORT}:${RADARR_PORT}
- ${BAZARR_PORT:-6767}:6767
environment:
- VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
- VPN_TYPE=${VPN_TYPE}
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
- WIREGUARD_PUBLIC_KEY=${WIREGUARD_PUBLIC_KEY}
- SERVER_COUNTRIES=${SERVER_COUNTRIES}
- GLUETUN__HTTP_CONTROL_SERVER__USER=${GLUETUN_USER}
- GLUETUN__HTTP_CONTROL_SERVER__PASSWORD=${GLUETUN_PASSWORD}
- UPDATER_VPN_SERVICE_PROVIDERS=protonvpn
- UPDATER_PERIOD=24h
- VPN_PORT_FORWARDING=on
- VPN_PORT_FORWARDING_PROVIDER=protonvpn
- HEALTH_SERVER_ADDRESS=0.0.0.0:${GLUETUN_HEALTHCHECK_PORT}
- HEALTH_TARGET_ADDRESSES=1.1.1.1:443
- DNS_ADDRESS=1.1.1.1
restart: unless-stopped
volumes:
- /tmp/gluetun:/tmp/gluetun
deploy:
resources:
limits:
memory: 128m
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:${GLUETUN_HEALTHCHECK_PORT}"]
interval: 30s
timeout: 30s
retries: 10
start_period: 120s
qbittorrent:
image: linuxserver/qbittorrent:5.0.4
container_name: qbittorrent
network_mode: "service:gluetun"
volumes:
- ./qbittorrent-config:/config
- ${MEDIA_DIR}:/media
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- WEBUI_PORT=${QBIT_PORT}
- WEBUI_USERNAME=${QBIT_USER}
- WEBUI_PASSWORD=${QBIT_PASSWORD}
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${QBIT_PORT}/api/v2/app/version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
port-sync:
container_name: port-sync
build:
context: .
dockerfile: docker/port_sync/Dockerfile
depends_on:
gluetun:
condition: service_healthy
qbittorrent:
condition: service_healthy
environment:
- GLUETUN_API=http://localhost:8000
- GLUETUN_USER=${GLUETUN_USER}
- GLUETUN_PASS=${GLUETUN_PASSWORD}
- QBIT_HOST=http://localhost:${QBIT_PORT}
- QBIT_USER=${QBIT_USER}
- QBIT_PASS=${QBIT_PASSWORD}
- CHECK_INTERVAL=60
volumes:
- ./qbittorrent-config:/config
network_mode: "service:gluetun"
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 64m
healthcheck:
test: ["CMD-SHELL", "pgrep -f update_qtorrent || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
radarr:
image: lscr.io/linuxserver/radarr:5.23.3
container_name: radarr
network_mode: service:gluetun
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- radarr_config:/config
- ${MEDIA_DIR}:/media
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${RADARR_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
sonarr:
image: lscr.io/linuxserver/sonarr:4.0.14
container_name: sonarr
network_mode: "service:gluetun"
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- sonarr_config:/config
- ${MEDIA_DIR}:/media
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${SONARR_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
prowlarr:
# Custom fork with YGG tracker support — versioned tags not available for this fork
image: ghcr.io/almottier/prowlarr-ygg:latest
container_name: prowlarr
network_mode: "service:gluetun"
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- prowlarr_config:/config
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 256m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PROWLARR_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
flaresolverr:
# Official image — replaces unmaintained community PR fork (alexfozor/flaresolverr:pr-1300-experimental)
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
restart: unless-stopped
network_mode: "service:gluetun"
depends_on:
gluetun:
condition: service_healthy
environment:
- LOG_LEVEL=${LOG_LEVEL:-debug}
- LOG_HTML=${LOG_HTML:-false}
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
volumes:
- flaresolverr_config:/config
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${FLARESOLVERR_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
bazarr:
image: lscr.io/linuxserver/bazarr:1.5.2
container_name: bazarr
network_mode: service:gluetun
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- bazarr_config:/config
- ${MEDIA_DIR}/shows:/shows
- ${MEDIA_DIR}/movies:/movies
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 256m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6767/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
unpackerr:
# Auto-extracts RAR/ZIP archives on torrent completion via Sonarr/Radarr events
# Requires SONARR_API_KEY and RADARR_API_KEY in .env (Settings > General in each app)
image: golift/unpackerr:0.14.5
container_name: unpackerr
network_mode: service:gluetun
depends_on:
gluetun:
condition: service_healthy
environment:
- TZ=${TZ}
- UN_SONARR_0_URL=http://localhost:${SONARR_PORT}
- UN_SONARR_0_API_KEY=${SONARR_API_KEY}
- UN_RADARR_0_URL=http://localhost:${RADARR_PORT}
- UN_RADARR_0_API_KEY=${RADARR_API_KEY}
volumes:
- ${MEDIA_DIR}/downloads:/downloads
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 128m
jellyfin:
image: jellyfin/jellyfin:10.10.7
container_name: jellyfin
restart: unless-stopped
network_mode: bridge
ports:
- "${JELLYFIN_PORT}:${JELLYFIN_PORT}"
environment:
- TZ=${TZ}
volumes:
- ${MEDIA_DIR}/shows:/shows
- ${MEDIA_DIR}/movies:/movies
- jellyfin_config:/config
- jellyfin_cache:/cache
# Raspberry Pi hardware transcoding via V4L2 (RPi 4/5)
# Uncomment the devices + group_add block below to enable hardware acceleration
# First verify device paths exist: ls /dev/video*
# Then enable in Jellyfin UI: Dashboard > Playback > Transcoding > Hardware Acceleration > V4L2
# devices:
# - /dev/video10:/dev/video10
# - /dev/video11:/dev/video11
# - /dev/video12:/dev/video12
# group_add:
# - "video"
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 1024m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${JELLYFIN_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
netdata:
image: netdata/netdata:v2.3.2
container_name: netdata
hostname: rpi
ports:
# Restricted to localhost — access via Tailscale or SSH tunnel for remote monitoring
- 127.0.0.1:${NETDATA_PORT}:${NETDATA_PORT}
cap_add:
- SYS_PTRACE
# SYS_ADMIN removed — only needed for eBPF metrics; add back if required
security_opt:
# apparmor:unconfined removed — not needed for basic monitoring
- no-new-privileges:true
volumes:
- ${MEDIA_DIR}:/media
- netdataconfig:/etc/netdata
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
- /run/dbus:/run/dbus:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
- /var/log:/host/var/log:ro
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
restart: unless-stopped
deploy:
resources:
limits:
memory: 256m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${NETDATA_PORT}/api/v1/info"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
diun:
# Notifies when new Docker image versions are available (does NOT auto-update)
# Replaces Watchtower which is unmaintained and broken on Docker 28+
image: crazymax/diun:4.29.0
container_name: diun
volumes:
- diun_data:/data
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ=${TZ}
- LOG_LEVEL=info
- LOG_JSON=false
- DIUN_WATCH_WORKERS=20
- DIUN_WATCH_SCHEDULE=0 */6 * * *
- DIUN_WATCH_JITTER=30s
- DIUN_PROVIDERS_DOCKER=true
- DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
- DIUN_NOTIF_NTFY_ENDPOINT=${NTFY_ENDPOINT:-https://ntfy.sh}
- DIUN_NOTIF_NTFY_TOPIC=${NTFY_TOPIC}
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 64m
ntfy:
# Self-hosted push notification server
# Subscribe to topics via ntfy mobile app or web UI at http://<rpi-ip>:${NTFY_PORT}
image: binwiederhier/ntfy:v2.11.0
container_name: ntfy
command: serve
volumes:
- ntfy_cache:/var/cache/ntfy
- ntfy_config:/etc/ntfy
ports:
- "${NTFY_PORT:-2586}:80"
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 64m
healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 -O /dev/null http://localhost:80/v1/health"]
interval: 60s
timeout: 10s
retries: 3
volumes:
radarr_config:
flaresolverr_config:
prowlarr_config:
sonarr_config:
bazarr_config:
jellyfin_config:
jellyfin_cache:
netdataconfig:
netdatalib:
netdatacache:
diun_data:
ntfy_cache:
ntfy_config: