-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathice.yml
239 lines (228 loc) · 5.31 KB
/
ice.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
version: '3'
networks:
ice:
driver: bridge
ipam:
config:
- subnet: 10.1.1.0/24
services:
pihole:
container_name: pihole
hostname: pihole
image: pihole/pihole:2024.07.0
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.2
ports:
- '53:53/tcp'
- '53:53/udp'
- '8080:80/tcp'
environment:
TZ: 'Europe/Vienna'
WEBPASSWORD: '${PIHOLE_PASSWORD}'
PIHOLE_DNS_: '10.1.1.3#53'
DHCP_ACTIVE: true
DHCP_START: 192.168.86.21
DHCP_END: 192.168.86.250
DHCP_ROUTER: 192.168.86.1
PIHOLE_DOMAIN: 'home'
WEBTHEME: 'default-light'
volumes:
- '${HOST_ROOT}/pihole/:/etc/pihole/'
- '${HOST_ROOT}/dnsmasq/:/etc/dnsmasq.d/'
cap_add:
- NET_ADMIN
restart: unless-stopped
depends_on:
- unbound
- dhcphelper
dhcphelper:
container_name: dhcphelper
network_mode: "host"
hostname: dhcphelper
image: homeall/dhcphelper:latest
logging:
driver: journald
environment:
IP: '10.1.1.2'
TZ: 'Europe/Vienna'
cap_add:
- NET_ADMIN
restart: unless-stopped
unbound:
container_name: unbound
hostname: unbound
image: klutchell/unbound:1.20.0
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.3
ports:
- 5053:53
volumes:
- ${HOST_ROOT}/unbound/custom.conf.d/:/etc/unbound/custom.conf.d/
- ${HOST_ROOT}/unbound/unbound.conf/:/etc/unbound/unbound.conf
restart: unless-stopped
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus:v2.52.0
logging:
driver: journald
volumes:
- ${HOST_ROOT}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
ice:
ipv4_address: 10.1.1.4
ports:
- 9090:9090
depends_on:
- node-exporter
node-exporter:
container_name: node-exporter
hostname: node-exporter
image: prom/node-exporter:v1.8.0
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.5
ports:
- 9100:9100
pid: host
volumes:
- /:/host:ro,rslave
command:
- '--path.rootfs=/host'
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:10.4.2
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.6
ports:
- 3000:3000
user: '$UID:$GID'
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
volumes:
- ${HOST_ROOT}/grafana/data:/var/lib/grafana
- ${HOST_ROOT}/grafana/provisioning:/etc/grafana/provisioning
restart: unless-stopped
depends_on:
- loki
- prometheus
nginx:
container_name: nginx
hostname: nginx
image: nginx:stable-alpine3.19
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.7
ports:
- "80:80"
volumes:
- '${HOST_ROOT}/nginx/html:/usr/share/nginx/html'
restart: always
diun:
container_name: diun
hostname: diun
image: crazymax/diun:4.28
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.9
command: serve
volumes:
- '${HOST_ROOT}/diun/data:/data'
- '${HOST_ROOT}/diun/diun.yml:/config/diun.yml'
- '/var/run/docker.sock:/var/run/docker.sock'
environment:
TZ: 'Europe/Vienna'
LOG_LEVEL: 'info'
CONFIG: '/config/diun.yml'
DIUN_NOTIF_DISCORD_WEBHOOKURL: '${DISCORD_WEBHOOKURL}'
DIUN_NOTIF_DISCORD_RENDERFIELDS: true
DIUN_NOTIF_DISCORD_TIMEOUT: '10s'
DIUN_NOTIF_DISCORD_TEMPLATEBODY: 'Docker tag {{ .Entry.Image }} has been released.'
labels:
- 'diun.enable=true'
restart: always
depends_on:
- loki
- pihole
- unbound
- grafana
- nginx
- node-exporter
- prometheus
- wg-easy
loki:
container_name: loki
hostname: loki
image: grafana/loki:2.9.8
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.10
ports:
- 3100:3100
volumes:
- '${HOST_ROOT}/loki/local-config.yaml:/etc/loki/local-config.yaml'
command: -config.file=/etc/loki/local-config.yaml -log.level=warn
promtail:
container_name: promtail
hostname: promtail
image: grafana/promtail:2.9.8
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.11
ports:
- 9080:9080
volumes:
- /var/log:/var/log
- /var/lib:/var/lib
- '${HOST_ROOT}/promtail/config.yml:/etc/promtail/config.yml'
command: -config.file=/etc/promtail/config.yml
depends_on:
- loki
wg-easy:
container_name: wg-easy
hostname: wg-easy
image: ghcr.io/wg-easy/wg-easy
logging:
driver: journald
networks:
ice:
ipv4_address: 10.1.1.12
environment:
- PORT=51821
- WG_PORT=51820
- LANG=en
- WG_HOST=${WG_PUBLIC_IP}
- PASSWORD=${WG_PASSWORD}
- WG_DEFAULT_DNS=10.1.1.2
volumes:
- '${HOST_ROOT}/wireguard/config:/etc/wireguard'
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1