forked from martinbjeldbak/self-hosted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·324 lines (302 loc) · 8.55 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
---
version: "3.8"
services:
adguardhome:
image: adguard/adguardhome
container_name: adguardhome
ports:
- 53:53/tcp # plain DNS
- 53:53/udp # plain DNS
expose:
- 3000 # UI
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DOCKER_CONF_DIR}/adguardhome/work:/opt/adguardhome/work
- ${DOCKER_CONF_DIR}/adguardhome/conf:/opt/adguardhome/conf
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: homeassistant
expose:
- 8123
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ./homeassistant:/config
- /etc/localtime:/etc/localtime:ro
restart: always
jackett:
image: ghcr.io/linuxserver/jackett
container_name: jackett
network_mode: "service:gluetun"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- AUTO_UPDATE=true
restart: unless-stopped
volumes:
- ${DOCKER_CONF_DIR}/jackett/config:/config
- ${DOCKER_TORRENTS_DIR}/watch:/downloads
plex:
image: ghcr.io/linuxserver/plex
container_name: plex
restart: unless-stopped
ports:
#- 1900:1900/udp # access to the Plex DLNA Server # NOTE: already in use
- 32400:32400/tcp # access to the Plex Media Server
- 32410:32410/udp # current GDM network discovery
- 32412:32412/udp # current GDM network discovery
- 32413:32413/udp # current GDM network discovery
- 32414:32414/udp # current GDM network discovery
- 32469:32469/tcp # access to the Plex DLNA Server
expose:
- 32400 # access to the Plex Media Server
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
- VERSION=docker
- PLEX_CLAIM=${PLEX_CLAIM}
volumes:
- ${DOCKER_CONF_DIR}/plex/database:/config
- ${DOCKER_CONF_DIR}/plex/transcode:/transcode
- ${DOCKER_MEDIA_DIR}:/data
devices:
- /dev/dri:/dev/dri # Synology w/ Intel CPU for hardware encoding
# NOTE: this is a once-off task and runs using cron
plextraktsync:
image: ghcr.io/taxel/plextraktsync
container_name: plextraktsync
volumes:
- ${DOCKER_CONF_DIR}/plextraktsync:/app/config
depends_on:
- plex
plex-meta-manager:
image: meisnate12/plex-meta-manager
container_name: plex-meta-manager
restart: unless-stopped
environment:
- TZ=${TZ}
- PMM_TIME=02:00,15:00
volumes:
- ${DOCKER_CONF_DIR}/plex-meta-manager:/config
depends_on:
- plex
radarr:
image: ghcr.io/linuxserver/radarr
container_name: radarr
expose:
- 7878
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DOCKER_CONF_DIR}/radarr:/config
- ${DOCKER_DATA_DIR}:/data
lidarr:
image: ghcr.io/linuxserver/lidarr
container_name: lidarr
expose:
- 8686
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DOCKER_CONF_DIR}/lidarr:/config
- ${DOCKER_DATA_DIR}:/data
sonarr:
image: ghcr.io/linuxserver/sonarr
container_name: sonarr
expose:
- 8989
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
restart: unless-stopped
volumes:
- ${DOCKER_CONF_DIR}/sonarr:/config
- ${DOCKER_DATA_DIR}:/data
tautulli:
image: tautulli/tautulli
container_name: tautulli
restart: unless-stopped
volumes:
- ${DOCKER_CONF_DIR}/tautulli:/config
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
expose:
- 8181
bazarr:
image: ghcr.io/linuxserver/bazarr
container_name: bazarr
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
expose:
- 6767
restart: unless-stopped
volumes:
- ${DOCKER_CONF_DIR}/bazarr:/config
- ${DOCKER_MEDIA_DIR}:/data/media
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
restart: always
cap_add:
- net_admin
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ${DOCKER_CONF_DIR}/gluetun:/gluetun
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
- SERVER_CITIES=${GLUETUN_CITIES}
- FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24
- BLOCK_SURVEILLANCE=on
- BLOCK_MALICIOUS=on
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
expose:
- 9091 # transmission
- 9117 # jackett
ports:
- 51413:51413/tcp # transmission
- 51413:51413/udp # transmission
transmission:
image: ghcr.io/linuxserver/transmission
container_name: transmission
restart: unless-stopped
network_mode: "service:gluetun"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- USER=${TRANSMISSION_USERNAME}
- PASS=${TRANSMISSION_PASSWORD}
volumes:
- ${DOCKER_CONF_DIR}/transmission:/config
- ${DOCKER_TORRENTS_DIR}:/data/downloads/torrents
- ${DOCKER_TORRENTS_DIR}/watch:/watch
caddy:
build:
context: .
dockerfile: caddy.Dockerfile
container_name: caddy
ports:
- 4443:443
restart: unless-stopped
environment:
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
- SITE_ADDRESS=${CADDY_HOSTNAME}
- TLS_EMAIL=${CADDY_TLS_EMAIL}
- HOSTNAME_DNS=${CADDY_HOSTNAME_DNS}
- HOSTNAME_HOMEASSISTANT=${CADDY_HOSTNAME_HOMEASSISTANT}
- HOSTNAME_PLEX=${CADDY_HOSTNAME_PLEX}
- HOSTNAME_JACKETT=${CADDY_HOSTNAME_JACKETT}
- HOSTNAME_RADARR=${CADDY_HOSTNAME_RADARR}
- HOSTNAME_LIDARR=${CADDY_HOSTNAME_LIDARR}
- HOSTNAME_SONARR=${CADDY_HOSTNAME_SONARR}
- HOSTNAME_BAZARR=${CADDY_HOSTNAME_BAZARR}
- HOSTNAME_HUGINN=${CADDY_HOSTNAME_HUGINN}
- HOSTNAME_TRANSMISSION=${CADDY_HOSTNAME_TRANSMISSION}
- HOSTNAME_NAS=${CADDY_HOSTNAME_NAS}
- HOSTNAME_TAUTULLI=${CADDY_HOSTNAME_TAUTULLI}
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ${DOCKER_CONF_DIR}/caddy/config:/config
- ${DOCKER_CONF_DIR}/caddy/data:/data
healthcheck:
test: ["CMD", "caddy", "version"]
unpackerr:
image: golift/unpackerr
container_name: unpackerr
volumes:
- ${DOCKER_DOWNLOADS_DIR}:/data/downloads
restart: always
user: ${PUID}:${PGID}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
# Sonarr config
- UN_SONARR_0_URL=http://sonarr:8989
- UN_SONARR_0_API_KEY=${SONARR_API_KEY}
- UN_SONARR_0_PATHS_0=/data/downloads/torrents/completed
# Radarr config
- UN_RADARR_0_URL=http://radarr:7878
- UN_RADARR_0_API_KEY=${RADARR_API_KEY}
- UN_RADARR_0_PATHS_0=/data/downloads/torrents/completed
# Lidarr config
- UN_LIDARR_0_URL=http://lidarr:8686
- UN_LIDARR_0_API_KEY=${LIDARR_API_KEY}
- UN_LIDARR_0_PATHS_0=/data/downloads/torrents/completed
security_opt:
- no-new-privileges:true
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
environment:
- /etc/localtime:/etc/localtime:ro
- WATCHTOWER_NOTIFICATIONS=shoutrrr
- WATCHTOWER_NOTIFICATION_URL=${DISCORD_NOTIFICATION_URL}
- WATCHTOWER_MONITOR_ONLY=true
command: --schedule "0 0 3 * * ?" # run at 3am
db:
image: postgres:14.2-alpine
container_name: postgres
restart: always
volumes:
- ${DOCKER_CONF_DIR}/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
huginn:
build:
context: .
dockerfile: huginn.Dockerfile
container_name: huginn
restart: always
expose:
- 3000
environment:
- TIMEZONE=${HUGINN_TIMEZONE}
- EMAIL_FROM_ADDRESS=${HUGINN_EMAIL_FROM_ADDRESS}
- SMTP_DOMAIN=${HUGINN_SMTP_DOMAIN}
- SMTP_PASSWORD=${HUGINN_SMTP_PASSWORD}
- INVITATION_CODE=${HUGINN_INVITATION_CODE}
- SMTP_USER_NAME=${SMTP_USER_NAME}
- SMTP_SERVER=${SMTP_SERVER}
- SMTP_PORT=465
- SMTP_SSL=true
- SMTP_AUTHENTICATION=plain
- ENABLE_INSECURE_AGENTS=true # trust all users
- DATABASE_ADAPTER=postgresql
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=${POSTGRES_PASSWORD}
- DATABASE_HOST=db
depends_on:
- db