-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
375 lines (358 loc) · 12.1 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
371
372
373
374
375
# Personal Media Server Stack Docker Compose File
#
# This file contains the configuration for a personal media server stack using Docker Compose.
# The stack includes services for VPN, torrent client, media server, media management, media request system,
# Plex monitoring, torrent indexer, Usenet downloader, service dashboard, system monitoring, system metrics,
# speed testing, and speed test tracking.
#
# Port Mappings
# ----------------------------------------
# Service | Port | Purpose
# ----------------|-------|----------------------------------
# Gluetun | 8888 | HTTP proxy for VPN tunnel
# qBittorrent | 8080 | Web UI (via Gluetun)
# | 8999 | Incoming connections (via Gluetun)
# | 9000 | UDP (via Gluetun)
# Plex | 32400 | Plex Media Server
# Radarr | 7878 | Movie management
# Sonarr | 8989 | TV Show management
# Overseerr | 5055 | Media request management
# Tautulli | 8181 | Plex statistics and monitoring
# Jackett | 9117 | Torrent tracker proxy
# SABnzbd | 8081 | Usenet downloader
# Organizr | 8096 | Web-based dashboard
# Monitorr | 8097 | Service status monitoring
# OpenSpeedTest | 3000 | Speed test (HTTP)
# | 3001 | Speed test (HTTPS)
# SpeedTest Track | 8765 | Speed test monitoring
# SETUP INSTRUCTIONS
# -----------------
# 1. Replace all PUID/PGID values with your user/group IDs
# Find these by running: id -u (for PUID) and id -g (for PGID)
#
# 2. Replace all timezone (TZ) values with your local timezone
# Format: Region/City (e.g., America/New_York, Europe/London)
# List: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
#
# 3. Replace all path placeholders with your actual paths:
# - /path/to/movies: Where your movies are stored
# - /path/to/tv: Where your TV shows are stored
# - /path/to/downloads: Where downloads should be stored
# - /path/to/media: Root media directory
# - /path/to/backup: Backup directory
#
# 4. Configure Mullvad VPN (see MULLVAD VPN CONFIGURATION section below)
#
# 5. Optional: If not using GPU transcoding in Plex, remove the GPU-related
# environment variables and devices section from the plex service.
# IMPORTANT: You DO need the GPU variables for Intel Quick Sync CPUs!
#
# 6. Create required directories:
# mkdir -p {plex,radarr,sonarr,overseerr,tautulli,jackett,sabnzbd,organizr,monitorr,netdata,speedtest-tracker,qbt}/config
#
# 7. Start the stack:
# docker-compose up -d
#
# 8. Access services through their respective ports (see port mapping table above)
# MULLVAD VPN CONFIGURATION
# ------------------------
# 1. Sign up for Mullvad VPN at https://mullvad.net
# 2. Generate a WireGuard configuration:
# - Go to https://mullvad.net/en/account/#/wireguard-config
# - Select "Linux" as your platform
# - Generate a new key
# - Download the configuration file
# 3. From the configuration file, you'll need:
# - PrivateKey: Found in the [Interface] section
# - Address: Found in the [Interface] section (e.g., 10.x.x.x/32)
# 4. For SERVER_CITIES:
# - View the full list at: https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#list-of-vpn-servers
# - Choose one or more cities (comma-separated)
# - A random server will be chosen from your list each time the container starts
# Example cities: "Ashburn VA,Atlanta GA,Chicago IL,Dallas TX"
version: "3.8"
services:
# VPN Gateway (Optional but Highly Recommended)
# -------------------------------------------
# Provides VPN tunnel for other containers (specifically qBittorrent)
# Uses Mullvad WireGuard for secure, fast connection
# While optional, using a VPN is highly recommended for privacy and security
# NOTE: If you don't want to use a VPN:
# 1. Comment out or remove this entire 'gluetun' service block
# 2. In the qBittorrent service below:
# - Remove the 'network_mode: "service:gluetun"' line
# - Uncomment the 'ports' section
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=your_private_key_here # Replace with your WireGuard private key
- WIREGUARD_ADDRESSES=your_wireguard_address_here # Replace with your WireGuard address (e.g., 10.x.x.x/32)
- SERVER_CITIES=Ashburn VA # Format: "City State" for US cities, just "City" for international
- SOCKSPROXY=on
- HTTPPROXY=on
- TZ=America/New_York
ports:
- 8888:8888 # HTTP proxy
- 8080:8080 # qBittorrent Web UI
- 8999:8999 # qBittorrent incoming
- 9000:9000/udp # qBittorrent UDP
restart: unless-stopped
# Torrent Client
# -------------
# qBittorrent with automatic RAR extraction
# NOTE: Choose between VPN and non-VPN configuration:
# For VPN: Keep network_mode: "service:gluetun" (current setup)
# For non-VPN: Remove network_mode line and uncomment ports section below
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000 # User ID
- PGID=1000 # Group ID
- TZ=America/New_York
volumes:
- ./qbt/config:/config
- /path/to/downloads:/downloads # Replace with your downloads directory path
network_mode: "service:gluetun" # Routes all traffic through VPN
# If not using VPN, remove the network_mode line above and uncomment these ports:
# ports:
# - 8080:8080 # Web UI
# - 8999:8999 # Incoming connections
# - 9000:9000/udp # UDP
restart: unless-stopped
# Media Server
# -----------
# Plex Media Server with GPU acceleration support
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: bridge
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- VERSION=docker
- NVIDIA_VISIBLE_DEVICES=all####i####### # Optional: Remove if not using GPU transcoding
- NVIDIA_DRIVER_CAPABILITIES=computevideoutility # Optional: Remove if not using GPU transcoding
devices:
- /dev/dri:/dev/dri # GPU passthrough (remove if not using GPU transcoding)
volumes:
- ./plex/config:/config
- /path/to/media/movies:/media/movies # Replace with your movies directory path
- /path/to/media/tv:/media/tv # Replace with your TV shows directory path
ports:
- 32400:32400
restart: unless-stopped
# Movie Management
# ---------------
# Automated movie downloading and organization
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./radarr/config:/config
- /path/to/media/movies:/movies # Replace with your movies directory path
- /path/to/downloads:/downloads # Replace with your downloads directory path
ports:
- 7878:7878
restart: unless-stopped
# TV Show Management
# -----------------
# Automated TV show downloading and organization
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./sonarr/config:/config
- /path/to/media/tv:/tv # Replace with your TV shows directory path
- /path/to/downloads:/downloads # Replace with your downloads directory path
ports:
- 8989:8989
restart: unless-stopped
# Media Request System
# -------------------
# Web-based interface for users to request new movies and TV shows
overseerr:
image: lscr.io/linuxserver/overseerr:latest
container_name: overseerr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./overseerr/config:/config
ports:
- 5055:5055
restart: unless-stopped
# Plex Monitoring
# --------------
# Statistics and analytics for Plex Media Server
tautulli:
image: lscr.io/linuxserver/tautulli:latest
container_name: tautulli
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./tautulli/config:/config
ports:
- 8181:8181
restart: unless-stopped
# Torrent Indexer
# --------------
# Proxy for accessing various torrent trackers
jackett:
image: lscr.io/linuxserver/jackett:latest
container_name: jackett
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- AUTO_UPDATE=true
volumes:
- ./jackett/config:/config
- /path/to/downloads:/downloads # Replace with your downloads directory path
ports:
- 9117:9117
restart: unless-stopped
# Usenet Downloader
# ----------------
# Binary newsgroup downloader
sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./sabnzbd/config:/config
- /path/to/downloads:/downloads # Replace with your downloads directory path
ports:
- 8081:8080
restart: unless-stopped
# Service Dashboard
# ---------------
# Web-based dashboard for organizing and accessing all services
organizr:
image: organizr/organizr:latest
container_name: organizr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./organizr/config:/config
ports:
- 8096:80
restart: unless-stopped
# Automatic Extraction
# ------------------
# Monitors download clients and automatically extracts completed downloads
# NOTE: The API keys below can only be obtained AFTER setting up Sonarr and Radarr
# You will need to:
# 1. Start the stack without worrying about Unpackerr
# 2. Set up Sonarr and Radarr
# 3. Get their API keys from Settings → General → Security → API Key
# 4. Update these environment variables with the API keys
# 5. Start Unpackerr
unpackerr:
image: golift/unpackerr
container_name: unpackerr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- UN_LOG_FILE=/downloads/unpackerr.log
- UN_SONARR_0_URL=http://radarr:8989
- UN_SONARR_0_API_KEY=RADARR_API_HERE # Get this from Sonarr after setup
- UN_RADARR_0_URL=http://sonarr:7878
- UN_RADARR_0_API_KEY=SONARR_API_HERE # Get this from Radarr after setup
volumes:
- /path/to/downloads:/downloads # Replace with your downloads directory path
restart: unless-stopped
# System Monitoring
# ---------------
# Service and system resource monitoring
monitorr:
image: monitorr/monitorr:latest
container_name: monitorr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- ./monitorr/app:/app
ports:
- 8097:80
restart: unless-stopped
# System Metrics
# -------------
# Real-time system metrics and monitoring
netdata:
image: netdata/netdata:latest
container_name: netdata-monitor
hostname: netdata
network_mode: host
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- apparmor=unconfined
volumes:
- /etc/os-release:/host/etc/os-release:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./netdata/config:/etc/netdata
environment:
- DOCKER_FROM_ENV=1
restart: unless-stopped
# Speed Testing
# ------------
# Network speed test server
openspeedtest:
image: openspeedtest/latest
container_name: openspeedtest
ports:
- 3000:3000 # HTTP
- 3001:3001 # HTTPS
restart: unless-stopped
# Speed Test Tracking
# -----------------
# Automated speed test monitoring and history
speedtest-tracker:
container_name: speedtest-tracker
image: henrywhitaker3/speedtest-tracker:latest
ports:
- 8765:80
volumes:
- ./speedtest-tracker/config:/config
environment:
- TZ=America/New_York
- PGID=1000
- PUID=1000
- AUTH=true
- OOKLA_EULA_GDPR=true
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "200k"
restart: unless-stopped