-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
375 lines (344 loc) · 10.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
version: "3.9"
########################### NETWORKS
networks:
default:
driver: bridge
npm_proxy:
name: npm_proxy
driver: bridge
ipam:
config:
- subnet: 27.24.15.0/24
########################### EXTENSION FIELDS
# Common environment values
x-environment: &default-tz-puid-pgid
TZ: $TZ
PUID: $PUID
PGID: $PGID
# Keys common to some of the core services
x-common-keys-core: &common-keys-core
networks:
- npm_proxy
security_opt:
- no-new-privileges:true
restart: always
# Keys common to some of the dependent services/apps
x-common-keys-apps: &common-keys-apps
networks:
- npm_proxy
security_opt:
- no-new-privileges:true
restart: unless-stopped
# Keys common to some of the services in media-services.txt
x-common-keys-media: &common-keys-media
networks:
- npm_proxy
security_opt:
- no-new-privileges:true
restart: unless-stopped
########################### SERVICES
services:
############################# FRONTENDS
# Nginx Proxy Manager - Reverse Proxy with LetsEncrypt
npm:
<<: *common-keys-core # See EXTENSION FIELDS at the top
container_name: nginx-proxy-manager
image: 'jc21/nginx-proxy-manager:latest'
networks:
npm_proxy:
ipv4_address: 27.24.15.2 # You can specify a static IP
ports:
- '80:80' # Public HTTP Port. Port Forwarding on Router is ON.
- '443:443' # Public HTTPS Port. Port Forwarding on Router is ON.
- '81:81' # Admin Web Port. Port Forwarding on Router is OFF.
volumes:
- $DOCKERDIR/appdata/npm/config:/config
- $DOCKERDIR/appdata/npm/letsencrypt:/etc/letsencrypt
- $DOCKERDIR/appdata/npm/data:/data
environment:
DB_SQLITE_FILE: "/config/database.sqlite"
DISABLE_IPV6: 'true'
# Portainer - WebUI for Containers
portainer:
<<: *common-keys-core # See EXTENSION FIELDS at the top
container_name: portainer
image: portainer/portainer-ce:latest
command: -H unix:///var/run/docker.sock
networks:
npm_proxy:
ipv4_address: 27.24.15.3
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $DOCKERDIR/appdata/portainer/data:/data
environment:
- TZ=$TZ
# Heimdall - Application Dashboard
heimdall:
<<: *common-keys-core # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/heimdall
container_name: heimdall
networks:
npm_proxy:
ipv4_address: 27.24.15.4
ports:
- "83:80" # 80 to 82 already taken by other services
# - "444:443" # 443 used by Nginx Proxy Manager. Disabled because we will put Heimdall behind proxy.
volumes:
- $DOCKERDIR/appdata/heimdall:/config
environment:
<<: *default-tz-puid-pgid
############################# DOWNLOADERS
# Deluge - Torrent downloader
deluge:
<<: *common-keys-apps # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/deluge:latest
container_name: deluge
networks:
npm_proxy:
ipv4_address: 27.24.15.5
ports:
- 8112:8112
- 6881:6881
- 6881:6881/udp
volumes:
- $DOCKERDIR/appdata/deluge:/config
- $DATADIR/downloads:/downloads
environment:
<<: *default-tz-puid-pgid
# Prowlarr - Indexer Proxy
prowlarr:
<<: *common-keys-apps # See EXTENSION FIELDS at the top
image: ghcr.io/linuxserver/prowlarr:latest
container_name: prowlarr
networks:
npm_proxy:
ipv4_address: 27.24.15.6
ports:
- "9696:9696"
volumes:
- $DOCKERDIR/appdata/prowlarr:/config
- "/etc/localtime:/etc/localtime:ro"
environment:
<<: *default-tz-puid-pgid
#flaresolvarr - prowlarr
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
networks:
npm_proxy:
ipv4_address: 27.24.15.7
environment:
- LOG_LEVEL=info
- LOG_HTML=false
- CAPTCHA_SOLVER=none
- TZ=$TZ
ports:
- 8191:8191
restart: unless-stopped
# Lidarr - Music Management
lidarr:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/lidarr:latest
container_name: lidarr
networks:
npm_proxy:
ipv4_address: 27.24.15.8
ports:
- "8686:8686"
volumes:
- $DOCKERDIR/appdata/lidarr:/config
- $DATADIR/downloads:/downloads
- $DATADIR/media/music:/music
- "/etc/localtime:/etc/localtime:ro"
environment:
<<: *default-tz-puid-pgid
# Radarr - Movie management
radarr:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
networks:
npm_proxy:
ipv4_address: 27.24.15.9
ports:
- "7878:7878"
volumes:
- $DOCKERDIR/appdata/radarr:/config
- $DATADIR/media/movies:/movies
- "/etc/localtime:/etc/localtime:ro"
- $DATADIR/downloads:/downloads
environment:
<<: *default-tz-puid-pgid
# Sonarr - TV Shows management
sonarr:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
networks:
npm_proxy:
ipv4_address: 27.24.15.10
ports:
- "8989:8989"
volumes:
- $DOCKERDIR/appdata/sonarr:/config
- $DATADIR/media/shows:/shows
- "/etc/localtime:/etc/localtime:ro"
- $DATADIR/downloads:/downloads
environment:
<<: *default-tz-puid-pgid
# Readarr - Books management
readarr:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: lscr.io/linuxserver/readarr:develop
container_name: readarr
networks:
npm_proxy:
ipv4_address: 27.24.15.11
ports:
- "8787:8787"
volumes:
- $DOCKERDIR/appdata/readarr:/config
- $DATADIR/media/books:/books
- "/etc/localtime:/etc/localtime:ro"
- $DATADIR/downloads:/downloads
environment:
<<: *default-tz-puid-pgid
UMASK: 002
#ARGS: ""
# Bazarr - subtittles
bazarr:
image: lscr.io/linuxserver/bazarr:latest
container_name: bazarr
networks:
npm_proxy:
ipv4_address: 27.24.15.12
environment:
<<: *default-tz-puid-pgid
volumes:
- $DOCKERDIR/appdata/bazarr:/config
- $DATADIR/downloads/movies:/movies #optional
- $DATADIR/downloads/shows:/shows #optional
ports:
- 6767:6767
restart: unless-stopped
############################# MEDIA
# Jellyfin - Media Server
jellyfin:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: jellyfin/jellyfin:latest
container_name: jellyfin
networks:
npm_proxy:
ipv4_address: 27.24.15.13
ports:
- "8096:8096"
- "8920:8920"
environment:
<<: *default-tz-puid-pgid
UMASK_SET: 022
volumes:
- $DOCKERDIR/appdata/jellyfin:/config
- $DATADIR/downloads:/downloads
- $DATADIR/media:/media
# Kavita - Reading
kavita:
<<: *common-keys-media # See EXTENSION FIELDS at the top
image: kizaing/kavita:latest
networks:
npm_proxy:
ipv4_address: 27.24.15.14
volumes:
- $DOCKERDIR/appdata/kavita:/config
- $DATADIR/downloads/books:/books
ports:
- "5000:5000"
environment:
<<: *default-tz-puid-pgid
restart: unless-stopped
# Tdarr - Transcoding
tdarr:
<<: *common-keys-media # See EXTENSION FIELDS at the top
container_name: tdarr
image: ghcr.io/haveagitgat/tdarr:latest
networks:
npm_proxy:
ipv4_address: 27.24.15.15
restart: unless-stopped
ports:
- 8265:8265 # webUI port
- 8266:8266 # server port
- 8267:8267 # Internal node port
environment:
- TZ=$TZ
- PUID=$PUID
- PGID=$PGID
- UMASK_SET=002
- serverIP=27.24.15.15
- serverPort=8266
- webUIPort=8265
- internalNode=true
- nodeID=MyInternalNode
- nodeIP=27.24.15.15
- nodePort=8267
volumes:
- $DOCKERDIR/appdata/tdarr/server:/app/server
- $DOCKERDIR/appdata/tdarr/config:/app/configs
- $DOCKERDIR/appdata/tdarr/logs:/app/logs
- $DATADIR/downloads:/media
- $USERDIR/temp:/temp
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
############################# UTILITIES
# Dozzle - Real-time Docker Log Viewer
dozzle:
<<: *common-keys-apps # See EXTENSION FIELDS at the top
image: amir20/dozzle:latest
container_name: dozzle
networks:
npm_proxy:
ipv4_address: 27.24.15.16
ports:
- "8090:8080"
environment:
DOZZLE_LEVEL: info
DOZZLE_TAILSIZE: 300
DOZZLE_FILTER: "status=running"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# File Browser - Explorer
filebrowser:
<<: *common-keys-core # See EXTENSION FIELDS at the top
image: filebrowser/filebrowser:s6
container_name: filebrowser
networks:
npm_proxy:
ipv4_address: 27.24.15.17
ports:
- "82:80" # 80 and 81 are used by Nginx Proxy Manager
volumes:
- $DOCKERDIR/appdata/filebrowser:/config
- $USERDIR:/srv
environment:
<<: *default-tz-puid-pgid
############################# MAINTENANCE
# WatchTower - Automatic Docker Container Updates
watchtower:
<<: *common-keys-core # See EXTENSION FIELDS at the top
image: containrrr/watchtower
container_name: watchtower
networks:
npm_proxy:
ipv4_address: 27.24.15.18
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: $TZ
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_REMOVE_VOLUMES: "true"
WATCHTOWER_INCLUDE_STOPPED: "true"
WATCHTOWER_NO_STARTUP_MESSAGE: "false"
WATCHTOWER_SCHEDULE: "0 30 2 * * *" # Everyday at 2:30a.m
DOCKER_API_VERSION: "1.40"