-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.arr-stack.yml
More file actions
481 lines (463 loc) · 19 KB
/
Copy pathdocker-compose.arr-stack.yml
File metadata and controls
481 lines (463 loc) · 19 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
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
#########################
# Centralized Volumes #
#########################
volumes:
qbittorrent-config:
sabnzbd-config:
sonarr-config:
prowlarr-config:
radarr-config:
jellyfin-config:
jellyfin-cache:
seerr-config:
bazarr-config:
shelfmark-config:
audiobookshelf-config:
audiobookshelf-metadata:
tailscale-state:
#########################
# Networks #
#########################
networks:
arr-stack:
name: arr-stack
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
ip_range: 172.20.0.128/25
gateway: 172.20.0.1
#########################
# Logging #
#########################
x-logging: &default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# LinuxServer.io images use s6-overlay which needs CHOWN/SETUID/SETGID/DAC_OVERRIDE
# to switch users during init.
x-security-lsio: &lsio-security
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETUID
- SETGID
- DAC_OVERRIDE
#########################
# Services #
#########################
services:
# ═══════════════════════════════════════════════════════════════════════════
# DIRS-INIT - One-shot busybox container that ensures the expected /data
# directory layout exists before the stack starts using it.
# ═══════════════════════════════════════════════════════════════════════════
dirs-init:
image: busybox:latest
container_name: dirs-init
restart: "no"
user: "0:0"
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
command: >
sh -c "mkdir -p /data/media/audiobooks /data/media/ebooks /data/download /data/transcodes &&
chown -R $${PUID}:$${PGID} /data/media /data/download /data/transcodes &&
find /data/media /data/download /data/transcodes -type d -exec chmod 755 {} + &&
echo 'Ensured /data layout (owner $${PUID}:$${PGID}):' &&
ls -ld /data/media /data/media/audiobooks /data/media/ebooks /data/download /data/transcodes"
volumes:
- ${MEDIA_ROOT:-/data}:/data
networks:
- arr-stack
# ═══════════════════════════════════════════════════════════════════════════
# QBITTORRENT - Torrent download client.
# Access: 172.20.0.17:8085 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
- WEBUI_PORT=8085
- WEBUI_USERNAME=${QBIT_USERNAME:-admin}
- WEBUI_PASSWORD=${QBIT_PASSWORD:-adminadmin}
- DOCKER_MODS=ghcr.io/vuetorrent/vuetorrent-lsio-mod:latest
volumes:
- qbittorrent-config:/config
- ${MEDIA_ROOT:-/data}:/data
networks:
arr-stack:
ipv4_address: 172.20.0.17
restart: always
logging: *default-logging
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8085/"]
interval: 2m
timeout: 15s
retries: 4
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# SABNZBD - Usenet download client.
# Access: 172.20.0.18:8080 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
volumes:
- sabnzbd-config:/config
- ${MEDIA_ROOT:-/data}:/data
networks:
arr-stack:
ipv4_address: 172.20.0.18
restart: always
logging: *default-logging
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/"]
interval: 3m
timeout: 15s
retries: 4
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# SONARR - TV show monitor. Watches for new episodes and sends to download.
# Access: 172.20.0.10:8989 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
networks:
arr-stack:
ipv4_address: 172.20.0.10
volumes:
- sonarr-config:/config
- ${MEDIA_ROOT:-/data}:/data
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8989/"]
interval: 2m
timeout: 15s
retries: 3
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# PROWLARR - Indexer manager. Finds download sources for Sonarr/Radarr.
# Access: 172.20.0.19:9696 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
prowlarr:
image: lscr.io/linuxserver/prowlarr:latest
container_name: prowlarr
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
volumes:
- prowlarr-config:/config
networks:
arr-stack:
ipv4_address: 172.20.0.19
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:9696/"]
interval: 2m
timeout: 15s
retries: 3
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# RADARR - Movie monitor. Watches for new movies and sends to download.
# Access: 172.20.0.11:7878 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
networks:
arr-stack:
ipv4_address: 172.20.0.11
volumes:
- radarr-config:/config
- ${MEDIA_ROOT:-/data}:/data
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:7878/"]
interval: 2m
timeout: 15s
retries: 3
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# AUDIOBOOKSHELF - Audiobook server (progress sync, mobile apps, chapters).
# Ebooks are handled by Jellyfin; this is for audiobooks only.
# Access: 172.20.0.12:80 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
audiobookshelf:
image: advplyr/audiobookshelf:latest
container_name: audiobookshelf
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
volumes:
- audiobookshelf-config:/config
- audiobookshelf-metadata:/metadata
- ${MEDIA_ROOT:-/data}/media/audiobooks:/audiobooks
- ${MEDIA_ROOT:-/data}/media/ebooks:/ebooks
networks:
arr-stack:
ipv4_address: 172.20.0.12
restart: always
logging: *default-logging
# ═══════════════════════════════════════════════════════════════════════════
# JELLYFIN - Media server. Stream your movies and TV shows like Netflix.
# Access: 172.20.0.4:8096 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
environment:
- TZ=${TZ:-UTC}
volumes:
- jellyfin-config:/config
- jellyfin-cache:/cache
- ${MEDIA_ROOT:-/data}/media:/data/media
- /data/transcodes:/transcodes
networks:
arr-stack:
ipv4_address: 172.20.0.4
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8096/health"]
interval: 1m
timeout: 30s
retries: 2
start_period: 30s
# ═══════════════════════════════════════════════════════════════════════════
# SEERR (formerly Jellyseerr) - Request portal. Users request movies/shows here.
# Access: 172.20.0.8:5055 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
seerr:
image: ghcr.io/seerr-team/seerr:latest
init: true
container_name: seerr
environment:
- LOG_LEVEL=info
- TZ=${TZ:-UTC}
- PORT=5055
networks:
arr-stack:
ipv4_address: 172.20.0.8
volumes:
- seerr-config:/app/config
restart: always
logging: *default-logging
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:5055/api/v1/status",
]
interval: 2m
timeout: 10s
retries: 3
start_period: 20s
# ═══════════════════════════════════════════════════════════════════════════
# BAZARR - Subtitle manager. Automatically downloads subtitles.
# Access: 172.20.0.9:6767 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
bazarr:
image: lscr.io/linuxserver/bazarr:latest
container_name: bazarr
<<: *lsio-security
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
networks:
arr-stack:
ipv4_address: 172.20.0.9
volumes:
- bazarr-config:/config
- ${MEDIA_ROOT:-/data}/media:/data/media
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6767/"]
interval: 3m
timeout: 10s
retries: 2
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# SHELFMARK - Self-hosted book & audiobook search/request hub.
# Ebooks -> /ebooks (INGEST_DIR), audiobooks -> /audiobooks (DESTINATION_AUDIOBOOK).
# Point the ebook volume at your CWA/Grimmory ingest folder for auto-import.
# Access: 172.20.0.13:8084 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
shelfmark:
image: ghcr.io/calibrain/shelfmark:latest
container_name: shelfmark
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-UTC}
- FLASK_PORT=8084
- INGEST_DIR=/ebooks
- DESTINATION_AUDIOBOOK=/audiobooks
- SEARCH_MODE=universal
volumes:
- shelfmark-config:/config
- ${MEDIA_ROOT:-/data}/media/ebooks:/ebooks
- ${MEDIA_ROOT:-/data}/media/audiobooks:/audiobooks
- ${MEDIA_ROOT:-/data}/download:/data/download
networks:
arr-stack:
ipv4_address: 172.20.0.13
restart: always
logging: *default-logging
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8084/api/health"]
interval: 2m
timeout: 15s
retries: 3
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# HOMER - Dashboard. Static YAML config, no backend.
# Access: 172.20.0.30:8080 (via Tailscale)
# ═══════════════════════════════════════════════════════════════════════════
homer:
image: b4bz/homer:latest
container_name: homer
user: "${PUID:-1000}:${PGID:-1000}"
volumes:
- ./config/homer:/www/assets
networks:
arr-stack:
ipv4_address: 172.20.0.30
restart: always
logging: *default-logging
# ═══════════════════════════════════════════════════════════════════════════
# FLARESOLVERR - Cloudflare challenge solver. Helps Prowlarr access
# Cloudflare-protected indexer sites. No web UI. Used internally by Prowlarr.
# ═══════════════════════════════════════════════════════════════════════════
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
environment:
- LOG_LEVEL=info
- TZ=${TZ:-UTC}
networks:
arr-stack:
ipv4_address: 172.20.0.21
restart: always
logging: *default-logging
healthcheck:
test:
[
"CMD",
"curl",
"-sf",
"-X",
"POST",
"-H",
"Content-Type: application/json",
"-d",
'{"cmd":"request.get","url":"http://localhost:8191/","maxTimeout":30000}',
"http://localhost:8191/v1",
]
interval: 10m
timeout: 60s
retries: 2
start_period: 60s
# ═══════════════════════════════════════════════════════════════════════════
# TAILSCALE - Private remote access to the internal Docker network.
# Connects to your Tailscale tailnet so authorised devices can reach
# containers by internal Docker IPs without any externally-exposed ports.
# Access: Connect to tailnet, then browse to e.g. http://172.20.0.10:8989
# ═══════════════════════════════════════════════════════════════════════════
tailscale:
image: tailscale/tailscale:latest
container_name: tailscale
hostname: ${TS_HOSTNAME:-arr-stack-nas}
networks:
arr-stack:
ipv4_address: 172.20.0.100
cap_add:
- NET_ADMIN
- NET_RAW
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- tailscale-state:/var/lib/tailscale
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ACCEPT_DNS=false
- TS_AUTHKEY=${TS_AUTHKEY:-}
- TS_EXTRA_ARGS=--advertise-routes=${LAN_SUBNET:-10.10.0.0/24},172.20.0.0/24 --accept-routes
healthcheck:
test: ["CMD", "tailscale", "status", "--peers=false"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# ═══════════════════════════════════════════════════════════════════════════
# CONFIGURATOR - One-shot setup. Creates media dirs and configures services.
# Run: docker compose --profile setup up configurator
# ═══════════════════════════════════════════════════════════════════════════
configurator:
build: ./configurator
container_name: configurator
profiles: ["setup"]
environment:
- QBIT_USERNAME=${QBIT_USERNAME:-admin}
- QBIT_PASSWORD=${QBIT_PASSWORD:-adminadmin}
volumes:
- ${MEDIA_ROOT:-/data}/media:/data/media
- sonarr-config:/config/sonarr
- radarr-config:/config/radarr
- prowlarr-config:/config/prowlarr
- bazarr-config:/config/bazarr
networks:
- arr-stack
depends_on:
sonarr:
condition: service_healthy
radarr:
condition: service_healthy
prowlarr:
condition: service_healthy
qbittorrent:
condition: service_healthy
restart: "no"
logging: *default-logging