-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
348 lines (332 loc) · 10.7 KB
/
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
services:
# caddy: reverse proxy
caddy:
image: caddy:alpine
container_name: caddy
restart: unless-stopped
network_mode: host # Docker requires network_mode be set to host in order to access the IPv6 public address
environment:
- JELLYFIN_PUBLISHED_URL=${JELLYFIN_PUBLISHED_URL} # Published public Jellyfin URL
- JELLYFIN_PORT=${JELLYFIN_HTTP_PORT} # Internal jellyfin HTTP port, default is normally 8096
- NAVIDROME_PUBLISHED_URL=${NAVIDROME_PUBLISHED_URL} # Published public NaviDrome URL
- NAVIDROME_PORT=${NAVIDROME_PORT} # Internal NaviDrome HTTP port, default is normally 4533
- NEXTCLOUD_PUBLISHED_URL=${NEXTCLOUD_PUBLISHED_URL} # Published public NextCloud URL
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile # Local Caddyfile to map
- caddy:/certs
- caddy:/config
- caddy:/data
- caddy:/srv
# nextcloud: file hosting and drive
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
container_name: nextcloud-aio-mastercontainer
restart: unless-stopped
networks: [externalNetwork]
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
- NEXTCLOUD_DATADIR=${NEXTCLOUD_DIRECTORY}
- NEXTCLOUD_UPLOAD_LIMIT=100G
- NEXTCLOUD_MAX_TIME=12000
- NEXTCLOUD_MEMORY_LIMIT=16384M # Memory limit, lower if a problem
- NEXTCLOUD_ENABLE_DRI_DEVICE=true # Disable if /dev/dri doesn't exist
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- ${NEXTCLOUD_DIRECTORY}:/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8080:8080 # NextCloud HTTP Port
- 8443:8443 # NextCloud HTTPS Port
# gluetun: vpn
gluetun:
image: qmcgaw/gluetun:latest
container_name: gluetun
restart: unless-stopped
privileged: true
cap_add:
- NET_ADMIN
environment:
- VPN_PORT_FORWARDING=on
- VPN_SERVICE_PROVIDER=custom
- VPN_PORT_FORWARDING_PROVIDER=protonvpn
- VPN_TYPE=wireguard
- VPN_ENDPOINT_IP=${VPN_ENDPOINT_IP}
- VPN_ENDPOINT_PORT=${VPN_ENDPOINT_PORT}
- VPN_DNS_ADDRESS=${VPN_DNS_ADDRESS}
- WIREGUARD_PUBLIC_KEY=${VPN_WIREGUARD_PUBLIC_KEY}
- WIREGUARD_PRIVATE_KEY=${VPN_WIREGUARD_PRIVATE_KEY}
- WIREGUARD_ADDRESSES=${VPN_WIREGUARD_ADDRESSES}
- UPDATER_PERIOD=24h
- FIREWALL_OUTBOUND_SUBNETS=172.20.0.0/16,192.168.1.0/24 # Internal LAN network
volumes:
- gluetun:/gluetun
ports:
- ${QBITTORRENT_WEBUI_PORT}:${QBITTORRENT_WEBUI_PORT} # qBittorrent WebUI
- ${SONARR_PORT}:${SONARR_PORT} # Sonarr WebUI
- ${RADARR_PORT}:${RADARR_PORT} # Radarr WebUI
- ${LIDARR_PORT}:${LIDARR_PORT} # Lidarr WebUI
- ${DEEMIX_PORT}:${DEEMIX_PORT} # Deemix WebUI
- ${PROWLARR_PORT}:${PROWLARR_PORT} # Prowlarr WebUI
- ${FLARESOLVERR_PORT}:${FLARESOLVERR_PORT} # Flaresolverr API
- 8000:8000 # Gluetun
# qbittorrent: bittorrent client
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: unless-stopped
depends_on:
gluetun:
condition: service_healthy
network_mode: service:gluetun
devices:
- /dev/net/tun:/dev/net/tun
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
- WEBUI_PORT=${QBITTORRENT_WEBUI_PORT}
volumes:
- qbittorrent:/config
- ${STORAGE_DIRECTORY}:/storage
# qbittorrent-natmap: automatically set qbittorrent ports to match gluetun
qbittorrent-natmap:
image: ghcr.io/soxfor/qbittorrent-natmap:latest
container_name: qbittorrent-natmap
restart: unless-stopped
depends_on:
qbittorrent:
condition: service_started
gluetun:
condition: service_healthy
network_mode: service:gluetun
environment:
- QBITTORRENT_USER=${QBITTORRENT_WEBUI_USERNAME}
- QBITTORRENT_PASS=${QBITTORRENT_WEBUI_PASSWORD}
- QBITTORRENT_PORT=${QBITTORRENT_WEBUI_PORT}
- QBITTORRENT_SERVER=${VPN_WIREGUARD_ADDRESSES}
- VPN_GATEWAY=${VPN_DNS_ADDRESS}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# jellyfin: media client for tv/movies
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
restart: unless-stopped
networks: [externalNetwork]
devices:
- /dev/dri:/dev/dri # Remove if /dev/dri doesn't exist or
volumes:
- jellyfin:/config
- ${MEDIALIBRARY_DIRECTORY}:/data # Media library folder, for my structure it is /mnt/md0/medialibrary
- ${MEDIALIBRARY_DIRECTORY}/music:/music:ro # Music read-only
ports:
- ${JELLYFIN_HTTP_PORT}:${JELLYFIN_HTTP_PORT} # Jellyfin WebUI port, default is normally 8096
- ${JELLYFIN_HTTPS_PORT}:${JELLYFIN_HTTPS_PORT} # Jellyfin HTTPS WebUI port, default is normally 8920
- ${JELLYFIN_DLNA_PORT}:${JELLYFIN_DLNA_PORT}/udp # Jellyfin DLNA port, default is normally 1900
- ${JELLYFIN_AUTODISCOVERY_PORT}:${JELLYFIN_AUTODISCOVERY_PORT}/udp # Jellyfin Client AutoDiscovery port, default is normally 7359
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
- DOCKER_MODS=ghcr.io/jumoog/intro-skipper # Allows adding the "skip intro" button to the web UI. Remove if you don't use this plugin
# navidrome: media client for music
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
restart: unless-stopped
networks: [externalNetwork]
environment:
- ND_LASTFM_APIKEY=${LASTFM_APIKEY} # Last.fm integration
- ND_LASTFM_SECRET=${LASTFM_SECRET} # Last.fm integration
- ND_SPOTIFY_ID=${SPOTIFY_ID} # Spotify artist image integration
- ND_SPOTIFY_SECRET=${SPOTIFY_SECRET} # Spotify artist image integration
volumes:
- navidrome:/data
- ${MEDIALIBRARY_DIRECTORY}/music:/music:ro # read-only music directory, i like mediadirectory/music
ports:
- ${NAVIDROME_PORT}:${NAVIDROME_PORT} # navidrome webui port, defaults to 4533
# cloudflare-ddns: cloudflare dns updater
cloudflare-ddns:
image: favonia/cloudflare-ddns:latest
container_name: cloudflare-ddns
restart: unless-stopped
network_mode: host
read_only: true
cap_drop: [all]
security_opt: [no-new-privileges:true]
environment:
- CF_API_TOKEN=${CF_API_TOKEN}
- DOMAINS=${CF_DOMAINS}
- PROXIED=${CF_PROXIED}
# deemix: deemix downloader
deemix:
image: codefaux/deemix-for-lidarr
container_name: deemix
network_mode: service:gluetun
restart: unless-stopped
environment:
- DEEMIX_SINGLE_USER=true # Only require one server-side config
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- TZ=${GLOBAL_TZ}
volumes:
- deemix:/deemix-gui/config
- ${DOWNLOAD_DIRECTORY}/music:/downloads
# lidarr: music pvr
lidarr:
image: ghcr.io/hotio/lidarr:pr-plugins
container_name: lidarr
network_mode: service:gluetun
environment:
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- TZ=${GLOBAL_TZ}
volumes:
- lidarr:/config
- ${DOWNLOAD_DIRECTORY}/music:/downloads
- ${STORAGE_DIRECTORY}:/storage
# radarr: pvr for movies
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
restart: unless-stopped
network_mode: service:gluetun
depends_on:
qbittorrent:
condition: service_started
gluetun:
condition: service_healthy
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
volumes:
- radarr:/config
- ${DOWNLOAD_DIRECTORY}:/downloads
- ${STORAGE_DIRECTORY}:/storage
# sonarr: pvr for tv
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
restart: unless-stopped
network_mode: service:gluetun
depends_on:
qbittorrent:
condition: service_started
gluetun:
condition: service_healthy
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
volumes:
- sonarr:/config
- ${DOWNLOAD_DIRECTORY}:/downloads
- ${STORAGE_DIRECTORY}:/storage
# prowlarr: pvr indexer
prowlarr:
image: lscr.io/linuxserver/prowlarr:latest
container_name: prowlarr
restart: unless-stopped
network_mode: service:gluetun
depends_on:
qbittorrent:
condition: service_started
gluetun:
condition: service_healthy
radarr:
condition: service_started
sonarr:
condition: service_started
flaresolverr:
condition: service_started
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
volumes:
- prowlarr:/config
- ${DOWNLOAD_DIRECTORY}:/downloads
- ${STORAGE_DIRECTORY}:/storage
# flaresolverr: cloudflare captcha bypasser
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
restart: unless-stopped
network_mode: service:gluetun
depends_on:
gluetun:
condition: service_healthy
cap_drop: [all]
security_opt: [no-new-privileges:true]
environment:
- TZ=${GLOBAL_TZ}
- PUID=${GLOBAL_PUID}
- PGID=${GLOBAL_PGID}
- UMASK=${GLOBAL_UMASK}
# seedboxapi: automatically set seedbox api for trackers (MAM)
# If you are not using myanonamouse, you may safely remove this container
seedboxapi:
image: myanonamouse/seedboxapi:latest
container_name: seedboxapi
network_mode: service:gluetun
depends_on:
qbittorrent:
condition: service_started
gluetun:
condition: service_healthy
environment:
- DEBUG=1
- interval=1 # Check every minute
- mam_id=${MAM_ID} # MyAnonAmouse Session ID
volumes:
- seedboxapi:/config
volumes:
caddy:
external: true
name: caddy-volume
nextcloud_aio_mastercontainer:
external: true
name: nextcloud_aio_mastercontainer
gluetun:
external: true
name: gluetun-volume
qbittorrent:
external: true
name: qbittorrent-volume
jellyfin:
external: true
name: jellyfin-volume
navidrome:
external: true
name: navidrome-volume
deemix:
external: true
name: deemix-volume
lidarr:
external: true
name: lidarr-volume
radarr:
external: true
name: radarr-volume
sonarr:
external: true
name: sonarr-volume
prowlarr:
external: true
name: prowlarr-volume
seedboxapi:
external: true
name: seedboxapi-volume
networks:
externalNetwork:
external: true
driver: bridge
name: external-network
enable_ipv6: false