Initial commit

This commit is contained in:
2025-11-06 20:28:41 +01:00
commit 5fc4fbcef3
182 changed files with 4742 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/config
Driver=local
Options=bind
Type=none
VolumeName=pihole-config

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/dnsmasq
Driver=local
Options=bind
Type=none
VolumeName=pihole-dnsmasq

View File

@@ -0,0 +1,36 @@
[Unit]
Description=Unbound container
After=unbound.container
Requires=unbound.container
[Container]
AutoUpdate=registry
Command=CMD redis-server /usr/local/etc/redis/redis.conf
ContainerName=pihole
Environment=DNSMASQ_USER=pihole
Environment=FTLCONF_LOCAL_IPV4=192.168.1.103
Environment=PIHOLE_DNS_=172.20.0.7#5335
Environment=PIHOLE_GID=1001
Environment=PIHOLE_UID=1001
Environment=VIRTUAL_HOST=pihole
Environment=TZ=Europe/Zurich
HealthCheck=CMD /usr/local/unbound/sbin/healthcheck.sh
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/pihole/pihole:latest
IP=172.20.0.6
Network=pihole.network
Pod=pihole.pod
Secret=webserver-password,type=env,target=FTLCONF_webserver_api_password
StartWithPod=true
Timezone=Europe/Zurich
Volume=redis-data.volume:/data
Volume=pihole-config.volume:/etc/pihole
Volume=pihole-dnsmasq.volume:/etc/dnsmasq.d
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,4 @@
[Network]
Driver=bridge
NetworkName=pihole
Subnet=172.20.0.0/16

View File

@@ -0,0 +1,4 @@
[Pod]
PodName=pihole
PublishPort=5335:53
PublishPort=9005:80

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-conf
Driver=local
Options=bind
Type=none
VolumeName=unbound-conf

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-iana
Driver=local
Options=bind
Type=none
VolumeName=unbound-iana

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-log
Driver=local
Options=bind
Type=none
VolumeName=unbound-log

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-redis-cache
Driver=local
Options=bind
Type=none
VolumeName=unbound-redis-cache

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-redis-conf
Driver=local
Options=bind
Type=none
VolumeName=unbound-redis-conf

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-redis-data
Driver=local
Options=bind
Type=none
VolumeName=unbound-redis-data

View File

@@ -0,0 +1,19 @@
[Unit]
Description=Unbound socket container
[Container]
AutoUpdate=registry
Command=CMD chown -R 999:1001 /usr/local/unbound/cachedb.d/ && /bin/sh
ContainerName=unbound-redis-socket
Environment=TZ=Europe/Zurich
Image=docker.io/busybox
Pod=pihole.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=unbound-redis-cache.volume:/usr/local/unbound/cachedb.d
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,27 @@
[Unit]
Description=Redis container
After=unbound-redis-socket.container
Requires=unbound-redis-socket.container
[Container]
AutoUpdate=registry
Command=CMD redis-server /usr/local/etc/redis/redis.conf
ContainerName=unbound-redis
Environment=TZ=Europe/Zurich
HealthCheck=CMD /bin/bash -c '[[ -S /usr/local/unbound/cachedb.d/redis.sock ]]'
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/redis:alpine
Pod=pihole.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=unbound-redis-data.volume:/data
Volume=unbound-redis-conf.volume:/usr/local/etc/redis
Volume=unbound-redis-cache.volume:/usr/local/unbound/cachedb.d
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound-zones
Driver=local
Options=bind
Type=none
VolumeName=unbound-zones

View File

@@ -0,0 +1,38 @@
[Unit]
Description=Unbound container
After=unbound-redis.container
Requires=unbound-redis.container
[Container]
AutoUpdate=registry
Command=CMD redis-server /usr/local/etc/redis/redis.conf
ContainerName=unbound
DNS=172.20.0.7
Environment=TZ=Europe/Zurich
Environment=GID=1001
Environment=UID=1001
Environment=UNBOUND_GID=1001
Environment=UNBOUND_UID=1001
HealthCheck=CMD /usr/local/unbound/sbin/healthcheck.sh
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/madnuttah/unbound:latest
IP=172.20.0.7
Network=pihole.network
Pod=pihole.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=redis-data.volume:/data
Volume=unbound.volume:/usr/local/unbound
Volume=unbound-conf.volume:/usr/local/unbound/conf.d
Volume=unbound-iana.volume:/usr/local/unbound/iana.d
Volume=unbound-log.volume:/usr/local/unbound/log.d
Volume=unbound-zones.volume:/usr/local/unbound/zones.d
Volume=unbound-cache.volume:/usr/local/unbound/cachedb.d/
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/pihole/storage/unbound
Driver=local
Options=bind
Type=none
VolumeName=unbound