forked from anandslab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-t2-obsolete.yml
executable file
·445 lines (428 loc) · 13.8 KB
/
docker-compose-t2-obsolete.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
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
version: "3.7"
################ THESE ARE APPS I USED TO USE BUT NOT ANYMORE ###########
########################### NETWORKS
networks:
t2_proxy:
external:
name: t2_proxy
default:
driver: bridge
########################### SERVICES
services:
# MiFlora MQTT Daemon - BT to MQTT Daemon for MiFlora Sensors
miflora:
image: raymondmm/miflora-mqtt
container_name: miflora-mqtt
environment:
- TZ=$TZ
network_mode: host
# user: "0"
volumes:
- $USERDIR/docker/miflora-mqtt/config:/config
restart: unless-stopped
# Varken - Monitor Plex, Sonarr, Radarr, and Other Data
varken:
image: boerderij/varken
container_name: varken
restart: unless-stopped
networks:
- t2_proxy
volumes:
- $USERDIR/docker/varken:/config
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
VRKN_GLOBAL_SONARR_SERVER_IDS: 1
VRKN_GLOBAL_RADARR_SERVER_IDS: 1
VRKN_GLOBAL_LIDARR_SERVER_IDS: "false"
VRKN_GLOBAL_TAUTULLI_SERVER_IDS: 1
VRKN_GLOBAL_OMBI_SERVER_IDS: "false"
VRKN_GLOBAL_SICKCHILL_SERVER_IDS: "false"
VRKN_GLOBAL_UNIFI_SERVER_IDS: 1
VRKN_INFLUXDB_URL: $SERVER_IP
VRKN_INFLUXDB_PORT: 8086
VRKN_INFLUXDB_SSL: "false"
VRKN_INFLUXDB_VERIFY_SSL: "false"
VRKN_INFLUXDB_USERNAME: $VARKEN_USER
VRKN_INFLUXDB_PASSWORD: $VARKEN_PASS
VRKN_TAUTULLI_1_URL: $SERVER_IP:$TAUTULLI_PORT
VRKN_TAUTULLI_1_FALLBACK_IP: 1.1.1.1
VRKN_TAUTULLI_1_APIKEY: $TAUTULLI_API_KEY
VRKN_TAUTULLI_1_SSL: "false"
VRKN_TAUTULLI_1_VERIFY_SSL: "false"
VRKN_TAUTULLI_1_GET_ACTIVITY: "true"
VRKN_TAUTULLI_1_GET_ACTIVITY_RUN_SECONDS: 30
VRKN_TAUTULLI_1_GET_STATS: "true"
VRKN_TAUTULLI_1_GET_STATS_RUN_SECONDS: 3600
VRKN_SONARR_1_URL: $SERVER_IP:$SONARR_PORT
VRKN_SONARR_1_APIKEY: $SONARR_API_KEY
VRKN_SONARR_1_SSL: "false"
VRKN_SONARR_1_VERIFY_SSL: "false"
VRKN_SONARR_1_MISSING_DAYS: 7
VRKN_SONARR_1_MISSING_DAYS_RUN_SECONDS: 300
VRKN_SONARR_1_FUTURE_DAYS: 1
VRKN_SONARR_1_FUTURE_DAYS_RUN_SECONDS: 300
VRKN_SONARR_1_QUEUE: "true"
VRKN_SONARR_1_QUEUE_RUN_SECONDS: 300
VRKN_RADARR_1_URL: $SERVER_IP:$RADARR_PORT
VRKN_RADARR_1_APIKEY: $RADARR_API_KEY
VRKN_RADARR_1_SSL: "false"
VRKN_RADARR_1_VERIFY_SSL: "false"
VRKN_RADARR_1_QUEUE: "true"
VRKN_RADARR_1_QUEUE_RUN_SECONDS: 300
VRKN_RADARR_1_GET_MISSING: "true"
VRKN_RADARR_1_GET_MISSING_RUN_SECONDS: 300
VRKN_UNIFI_1_URL: $UNIFI_HOST
VRKN_UNIFI_1_USERNAME: $UNIFI_USER
VRKN_UNIFI_1_PASSWORD: $UNIFI_PASS
VRKN_UNIFI_1_SITE: default
VRKN_UNIFI_1_USG_NAME: USG
VRKN_UNIFI_1_SSL: "true"
VRKN_UNIFI_1_VERIFY_SSL: "false"
VRKN_UNIFI_1_GET_USG_STATS_RUN_SECONDS: 300
# xTeve - IPTV proxy for Plex
xteve:
image: alturismo/xteve
container_name: xteve
restart: unless-stopped
# network_mode: host
networks:
- t2_proxy
ports:
- "34400:34400"
- "1901:1900"
# user: "0"
# logging:
# options:
# max-size: "10m"
# max-files: 3
environment:
TZ: $TZ
volumes:
- $USERDIR/docker/xteve:/config:rw
- /dev/shm:/tmp/xteve
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.xteve-rtr.entrypoints=https"
- "traefik.http.routers.xteve-rtr.rule=Host(`xteve.$DOMAINNAME`)"
- "traefik.http.routers.xteve-rtr.tls=true"
## Middlewares
- "traefik.http.routers.xteve-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.xteve-rtr.service=xteve-svc"
- "traefik.http.services.xteve-svc.loadbalancer.server.port=34400"
# Cloud IDE - Editing
cloud9:
image: linuxserver/cloud9
container_name: cloud9
restart: unless-stopped
networks:
- t2_proxy
security_opt:
- no-new-privileges:true
ports:
- "$CLOUD9_PORT:8000"
volumes:
- $USERDIR/server/scripts:/code
- /var/run/docker.sock:/var/run/docker.sock
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
# PASSWORD: $CLOUD9_PASSWORD
# USERNAME: $CLOUD9_USERNAME
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.cloud9-rtr.entrypoints=https"
- "traefik.http.routers.cloud9-rtr.rule=Host(`cloud9.$DOMAINNAME`)"
- "traefik.http.routers.cloud9-rtr.tls=true"
## Middlewares
- "traefik.http.routers.cloud9-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.cloud9-rtr.service=cloud9-svc"
- "traefik.http.services.cloud9-svc.loadbalancer.server.port=8000"
# Cloud Commander - web file manager
cloudcmd:
image: coderaiser/cloudcmd
container_name: cloudcmd
restart: unless-stopped
networks:
- t2_proxy
security_opt:
- no-new-privileges:true
volumes:
- $USERDIR/docker/cloudcmd:/root
- $USERDIR:/mnt/fs
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.cloudcmd-rtr.entrypoints=https"
- "traefik.http.routers.cloudcmd-rtr.rule=Host(`cloudcmd.$DOMAINNAME`)"
- "traefik.http.routers.cloudcmd-rtr.tls=true"
## Middlewares
- "traefik.http.routers.cloudcmd-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.cloudcmd-rtr.service=cloudcmd-svc"
- "traefik.http.services.cloudcmd-svc.loadbalancer.server.port=8000"
# VSCode Server - VSCode Editing
# WARNING: This appears to change permissions of all files to PUID:PGID
code-server:
image: linuxserver/code-server:latest
container_name: code-server
restart: unless-stopped
networks:
- t2_proxy
security_opt:
- no-new-privileges:true
ports:
- "$CODE_SERVER_PORT:8443"
volumes:
- $USERDIR/docker/code-server:/config
- $USERDIR:/home/user
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
PASSWORD: $VSCODE_PASSWORD
# SUDO_PASSWORD: $VSCODE_SUDO_PASSWORD
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.code-server-rtr.entrypoints=https"
- "traefik.http.routers.code-server-rtr.rule=Host(`code.$DOMAINNAME`)"
- "traefik.http.routers.code-server-rtr.tls=true"
## Middlewares
- "traefik.http.routers.code-server-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.code-server-rtr.service=code-server-svc"
- "traefik.http.services.code-server-svc.loadbalancer.server.port=8443"
# qBittorrent - Torrent downloader
# Needs trailing / if using PathPrefixStrip
qbittorrent:
image: linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: always
network_mode: container:transmission-vpn
security_opt:
- no-new-privileges:true
volumes:
- $USERDIR/docker/qbittorrent:/config
- $USERDIR/Downloads:/downloads
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
UMASK_SET: 002
WEBUI_PORT: 8168
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.qbittorrent-rtr.entrypoints=https"
- "traefik.http.routers.qbittorrent-rtr.rule=Host(`qbit.$DOMAINNAME`)"
- "traefik.http.routers.qbittorrent-rtr.tls=true"
## Middlewares
- "traefik.http.routers.qbittorrent-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.qbittorrent-rtr.service=qbittorrent-svc"
- "traefik.http.services.qbittorrent-svc.loadbalancer.server.port=8168"
# Cloudflare DDNS - Dynamic DNS Updater
cloudddns:
container_name: cloudddns
restart: always
image: joshava/cloudflare-ddns
volumes:
- $USERDIR/docker/cloudflare-ddns/config.yaml:/app/config.yaml
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
# SmokePing - Network latency Monitoring
smokeping:
image: linuxserver/smokeping:latest
container_name: smokeping
restart: unless-stopped
networks:
- t2_proxy
security_opt:
- no-new-privileges:true
# ports:
# - "$SMOKEPING_PORT:80"
volumes:
- $DOCKERDIR/smokeping/config:/config
- $DOCKERDIR/smokeping/data:/data
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.smokeping-rtr.entrypoints=https"
- "traefik.http.routers.smokeping-rtr.rule=HostHeader(`smokeping.$DOMAINNAME`)"
## Middlewares
- "traefik.http.routers.smokeping-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.smokeping-rtr.service=smokeping-svc"
- "traefik.http.services.smokeping-svc.loadbalancer.server.port=80"
# HA-Dockermon - Manage Docker containers in Home Assistant
ha-dockermon:
image: philhawthorne/ha-dockermon:latest
container_name: ha-dockermon
restart: unless-stopped
networks:
- socket_proxy
security_opt:
- no-new-privileges:true
ports:
- "$HA_DOCKERMON_PORT:8126"
volumes:
- $DOCKERDIR/ha-dockermon:/config
# - /var/run/docker.sock:/var/run/docker.sock
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
DOCKER_HOST: tcp://socket-proxy:2375
# Postgres - Database
postgres:
image: postgres
container_name: postgres
restart: always
security_opt:
- no-new-privileges:true
volumes:
- $DOCKERDIR/postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: $STATPING_DB_PASS
POSTGRES_USER: $STATPING_DB_USER
POSTGRES_DB: $STATPING_DB
# UniFi Controller - Managing UniFi Network
unifi:
container_name: unifi
image: jacobalberty/unifi:stable
restart: unless-stopped
networks:
- t2_proxy
security_opt:
- no-new-privileges:true
ports:
- "8080:8080"
- "8443:8443"
- "3478:3478/udp"
- "10001:10001/udp"
- "6789:6789"
volumes:
- ${DOCKERDIR}/unifi:/unifi
environment:
UNIFI_UID: $PUID
UNIFI_GID: $PGID
TZ: America/New_York
RUNAS_UID0: "false"
BIND_PRIV: "false"
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.unifi-rtr.entrypoints=https"
- "traefik.http.routers.unifi-rtr.rule=HostHeader(`ufi.$DOMAINNAME`)"
## Middlewares
- "traefik.http.routers.unifi-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.unifi-rtr.service=unifi-svc"
- "traefik.http.services.unifi-svc.loadbalancer.server.port=8443"
# Ouroboros - Automatic Docker Container Updates
ouroboros:
image: pyouroboros/ouroboros:latest
container_name: ouroboros
restart: unless-stopped
networks:
- default
- socket_proxy
# depends_on:
# - socket-proxy
volumes:
# - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security
- $DOCKERDIR/ouroboros/config.json:/root/.docker/config.json:ro
environment:
TZ: $TZ
INTERVAL: 86400
LOG_LEVEL: info
SELF_UPDATE: "true"
CLEANUP: "true"
IGNORE: traefik influxdb hassio_dns homeassistant hassio_supervisor addon_core_check_config addon_62c7908d_autobackup plexms
NOTIFIERS: "tgram://$TGRAM_BOT_TOKEN/$TGRAM_CHAT_ID/"
DOCKER_SOCKETS: tcp://socket-proxy:2375 # POST to be enabled on Socket Proxy
# Docker Socket Proxy - Security Enchanced Proxy for Docker Socket
socket-proxy:
container_name: socket-proxy
image: tecnativa/docker-socket-proxy
restart: always
networks:
# t2_proxy:
socket_proxy:
ipv4_address: 192.168.91.254 # You can specify a static IP
privileged: true
ports:
- "2375:2375"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- LOG_LEVEL=info # debug,info,notice,warning,err,crit,alert,emerg
## Variables match the URL prefix (i.e. AUTH blocks access to /auth/* parts of the API, etc.).
# 0 to revoke access.
# 1 to grant access.
## Granted by Default
- EVENTS=1
- PING=1
- VERSION=1
## Revoked by Default
# Security critical
- AUTH=0
- SECRETS=0
- POST=1 # Ouroboros
# Not always needed
- BUILD=0
- COMMIT=0
- CONFIGS=0
- CONTAINERS=1 # Traefik, portainer, etc.
- DISTRIBUTION=0
- EXEC=0
- IMAGES=1 # Portainer
- INFO=1 # Portainer
- NETWORKS=1 # Portainer
- NODES=0
- PLUGINS=0
- SERVICES=1 # Portainer
- SESSION=0
- SWARM=0
- SYSTEM=0
- TASKS=1 # Portaienr
- VOLUMES=1 # Portainer
# Traefik - Custom Error Pages
# Obsoleted because I did not spend any more time on it to customize and don't see the value
traefik-error-pages:
container_name: traefik-error-pages
image: guillaumebriday/traefik-custom-error-pages
restart: unless-stopped
networks:
- t2_proxy
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.traefik-error-pages-rtr.entrypoints=https"
- "traefik.http.routers.traefik-error-pages-rtr.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.traefik-error-pages-rtr.priority=1"
# Middlewares
- "traefik.http.routers.traefik-error-pages-rtr.middlewares=traefik-error-pages"
- "traefik.http.middlewares.traefik-error-pages.errors.service=traefik-error-pages-svc"
- "traefik.http.middlewares.traefik-error-pages.errors.status=401,403,404,429,500,502,503"
- "traefik.http.middlewares.traefik-error-pages.errors.query=/{status}.html"
# HTTP Services
- "traefik.http.routers.traefik-error-pages-rtr.service=traefik-error-pages-svc"
- "traefik.http.services.traefik-error-pages-svc.loadbalancer.server.port=80"