Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
366 lines (364 loc) · 10.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
366 lines (364 loc) · 10.5 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
version: '3'
networks:
proxy:
external: true
services:
traefik:
container_name: traefik
hostname: traefik
image: traefik
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/config/traefik/traefik.toml:/traefik.toml
- /var/config/traefik/acme.json:/acme.json
- /var/config/traefik/rules/:/rules/
- /var/config/traefik/.htpasswd:/.htpasswd:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
environment:
- TZ=Europe\Amsterdam
labels:
- traefik.enable=true
- traefik.port=8082
- traefik.frontend.rule=Host:proxy.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
shellinabox:
container_name: shellinabox
hostname: shellinabox
build: ./shellinabox
image: docker.io/lvlie/shellinabox
domainname: ${DOMAIN}
networks:
- proxy
volumes:
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.port=4200
- traefik.frontend.rule=Host:siab.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
sabnzbd:
container_name: sabnzbd
hostname: sabnzbd
image: docker.io/linuxserver/sabnzbd:latest
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "8088:8080"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/sabnzbd/:/config/
- /srv/cache/incomplete:/incomplete-downloads/
- /srv/cache/complete:/downloads/
- /srv/:/data
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
labels:
- traefik.enable=true
- traefik.port=8080
- traefik.frontend.rule=Host:sab.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
plex:
container_name: plex
hostname: plex
image: docker.io/plexinc/pms-docker:latest
domainname: ${DOMAIN}
ports:
- 32400:32400/tcp
- 3005:3005/tcp
- 8324:8324/tcp
- 32469:32469/tcp
- 1900:1900/udp
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/plex/:/config/
- /var/config/plex/temp/Transcode/:/transcode/
- /srv/:/data/
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PLEX_UID=800
- PLEX_GID=1000
- ADVERTISE_IP="${ADVERTISE_IP}"
timemachine:
container_name: timemachine
hostname: timemachine
build: ./timemachine
image: docker.io/lvlie/timemachine
domainname: ${DOMAIN}
network_mode: "host"
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/backup/:/backup/
restart: unless-stopped
tautulli:
container_name: tautulli
hostname: tautulli
image: docker.io/linuxserver/tautulli:latest
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "8181:8181/tcp"
volumes:
- /var/config/plexpy/:/config
- /var/config/plex/Library/Logs/:/logs:ro
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
labels:
- traefik.enable=true
- traefik.port=8181
- traefik.frontend.rule=Host:plexpy.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
sonarr:
container_name: sonarr
hostname: sonarr
image: docker.io/linuxserver/sonarr:latest
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "8989:8989/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/sonarr/:/config/
- /srv/TV/:/tv/
- /srv/cache/complete:/downloads/
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
labels:
- traefik.enable=true
- traefik.port=8989
- traefik.frontend.rule=Host:sonarr.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
radarr:
container_name: radarr
hostname: radarr
image: docker.io/linuxserver/radarr:latest
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "7878:7878/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/radarr/:/config/
- /srv/Movies/:/movies/
- /srv/cache/complete:/downloads/
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
labels:
- traefik.enable=true
- traefik.port=7878
- traefik.frontend.rule=Host:radarr.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
unifi:
container_name: unifi
hostname: unifi
image: docker.io/linuxserver/unifi-controller:latest
domainname: ${DOMAIN}
ports:
- "10001:10001/udp"
- "8080:8080"
- "8081:8081"
- "8443:8443"
- "8843:8843"
- "8880:8880"
- "3478:3478/udp"
- "6789:6789"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/unifi/:/config
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
db:
container_name: db
hostname: db
image: mariadb:latest
domainname: ${DOMAIN}
ports:
- "3306:3306"
volumes:
- /var/config/mariadb/:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: "homeassistant"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
hass:
container_name: hass
hostname: hass
image: docker.io/homeassistant/home-assistant:latest
domainname: ${DOMAIN}
network_mode: host
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/hass/:/config/
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
- "/dev/ttyUSB0:/dev/ttyUSB0"
restart: unless-stopped
depends_on:
- db
- influx
- plex
- sonarr
- radarr
- unifi
duplicati:
container_name: duplicati
hostname: duplicati
image: docker.io/linuxserver/duplicati:latest
domainname: ${DOMAIN}
ports:
- "8200:8200"
volumes:
- /var/config/:/backup/var/config/:ro
- /srv/backup/:/backup/srv/backup/:ro
- /home/:/backup/home/:ro
- /var/config/duplicati/:/config
- /var/srv/cache/duplicati:/temp
restart: unless-stopped
environment:
- TZ=Europe/Amsterdam
- PUID=800
- PGID=1000
privileged: true
influx:
container_name: influx
hostname: influx
image: influxdb:latest
domainname: ${DOMAIN}
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/srv/db/influx/:/var/lib/influxdb
restart: unless-stopped
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:latest
domainname: ${DOMAIN}
networks:
- proxy
ports:
- "3000:3000"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/srv/db/grafana/:/var/lib/grafana
restart: unless-stopped
depends_on:
- influx
environment:
GF_DEFAULT_INSTANCE_NAME: "home"
GF_AUTH_BASIC_ENABLED: "false"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_NAME: "home"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_SERVER_DOMAIN: "grafana.${DOMAIN}"
GF_SERVER_ROOT_URL: "https://grafana.${DOMAIN}"
labels:
- traefik.enable=true
- traefik.port=3000
- traefik.frontend.rule=Host:grafana.${DOMAIN}
- traefik.frontend.auth.basic="${HTPW}"
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.STSSeconds=15552000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.isDevelopment=false
telegraf:
container_name: telegraf
hostname: telegraf
image: telegraf:latest
domainname: ${DOMAIN}
network_mode: "host"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/config/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/rootfs/proc/:ro
restart: unless-stopped
depends_on:
- influx
environment:
HOST_PROC: "/rootfs/proc"
watchtower:
container_name: watchtower
hostname: watchtower
image: v2tec/watchtower:latest
domainname: ${DOMAIN}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 2 * * * *"
restart: unless-stopped