-
Notifications
You must be signed in to change notification settings - Fork 32
/
hosting.yml
200 lines (190 loc) · 5.69 KB
/
hosting.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
version: "3"
# a couple of services that are generaly useful, remember to set up your .env file first
services:
heimdall:
image: linuxserver/heimdall
container_name: heimdall
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DATADIR}/heimdall:/config
ports:
- 9080:80
- 9443:443
# alternative adblocker
#pihole:
# container_name: pihole
# image: pihole/pihole:latest
# restart: unless-stopped
# ports:
# - "53:53/tcp"
# - "53:53/udp"
# - "67:67/udp"
# - "6080:80/tcp"
# - "6443:443/tcp"
# environment:
# TZ: ${TZ}
# WEBPASSWORD: ${PH_WEBPASSWORD}
# volumes:
# - '${DATADIR}/pihole/etc-pihole/:/etc/pihole/'
# - '${DATADIR}/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
# cap_add:
# - NET_ADMIN
# dns:
# - 127.0.0.1
# - 46.182.19.48
# restart: unless-stopped
adguard:
container_name: adguard
image: adguard/adguardhome:latest
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "443:443/tcp"
- "853:853/tcp"
- "784:784/udp"
- "3300:3000/tcp"
- "3380:80/tcp"
volumes:
- '${DATADIR}/adguard/workdir:/opt/adguardhome/work'
- '${DATADIR}/adguard/confdir:/opt/adguardhome/conf'
cap_add:
- NET_ADMIN
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"
# alternative unifi image. One is enough
#unifi:
# image: ryansch/unifi-rpi:latest
# container_name: unifi
# restart: unless-stopped
# network_mode: host # for broadcasting and to avoid having to map all of those ports
# # Uncomment the following to set java options
# # environment:
# # JAVA_OPTS: -Xmx512M
# volumes:
# - ${DATADIR}/unifi/config:/var/lib/unifi
# - ${DATADIR}/unifi/log:/usr/lib/unifi/logs
# - ${DATADIR}/unifi/log2:/var/log/unifi
# - ${DATADIR}/unifi/run:/usr/lib/unifi/run
# - ${DATADIR}/unifi/run2:/run/unifi
# - ${DATADIR}/unifi/work:/usr/lib/unifi/work
unifi-controller:
image: ghcr.io/linuxserver/unifi-controller:arm32v7-latest
container_name: unifi-controller
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- MEM_LIMIT=512M #optional
volumes:
- ${DATADIR}/unifi-controller:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8443:8443
- 1900:1900/udp
- 8843:8843
- 8880:8880
- 6789:6789
- 5514:5514
labels: # better keep this one up to date manually
- "com.centurylinklabs.watchtower.enable=false"
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=${TZ}
- WATCHTOWER_CLEANUP=true # deleting old unused images automatically
# optional for notifications
#- WATCHTOWER_NOTIFICATIONS=email
#- WATCHTOWER_NOTIFICATION_EMAIL_FROM=${EMAIL_FROM}
#- WATCHTOWER_NOTIFICATION_EMAIL_TO=${WATCHTOWER_EMAIL_TO}
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${SMTP_SERVER}
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${SMTP_PORT}
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${SMTP_USER}
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${SMTP_PASSWORD}
# alternative for notification via pushover
#- WATCHTOWER_NOTIFICATIONS=shoutrrr
#- WATCHTOWER_NOTIFICATION_URL=pushover://shoutrrr:${PO_TOKEN}@${PO_USERKEY}
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"
# realistically you only need one: Watchtower or diun
diun:
container_name: diun
image: crazymax/diun:4.26
command: serve
volumes:
- ${DATADIR}/diun/data:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=${TZ}
- DIUN_WATCH_SCHEDULE=0 19 * * FRI,SAT,SUN
- DIUN_PROVIDERS_DOCKER=true
- DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
- DIUN_NOTIF_PUSHOVER_TOKEN=${DIUN_PO_TOKEN}
- DIUN_NOTIF_PUSHOVER_RECIPIENT=${DIUN_PO_RECIPIENT}
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "100m"
loki:
container_name: loki
image: grafana/loki:2.3.0
restart: unless-stopped
ports:
- "127.0.0.1:3100:3100"
volumes:
- ${DATADIR}/loki/config/loki-config.yaml:/etc/loki/loki-config.yaml
- ${DATADIR}/loki/data:/data/loki
command: -config.file=/etc/loki/loki-config.yaml
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"
# can be used as an alternative to the Loki log driver
# promtail:
# container_name: promtail
# image: grafana/promtail:2.3.0
# restart: unless-stopped
# volumes:
# - /var/lib/docker/containers:/var/lib/docker/containers:ro
# - ${DATADIR}/promtail/config/promtail-config.yaml:/etc/promtail/promtail-config.yaml
# command: -config.file=/etc/promtail/promtail-config.yaml
duplicati:
image: lscr.io/linuxserver/duplicati:2.0.6
container_name: duplicati
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
#- CLI_ARGS= #optional
volumes:
- ${DATADIR}/duplicati/config>:/config
- ${DATADIR}:/source
ports:
- 8200:8200
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"