Initial commit
This commit is contained in:
7
quadlets/pihole/pihole-config.volume
Normal file
7
quadlets/pihole/pihole-config.volume
Normal 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
|
||||
7
quadlets/pihole/pihole-dnsmasq.volume
Normal file
7
quadlets/pihole/pihole-dnsmasq.volume
Normal 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
|
||||
36
quadlets/pihole/pihole.container
Normal file
36
quadlets/pihole/pihole.container
Normal 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
|
||||
4
quadlets/pihole/pihole.network
Normal file
4
quadlets/pihole/pihole.network
Normal file
@@ -0,0 +1,4 @@
|
||||
[Network]
|
||||
Driver=bridge
|
||||
NetworkName=pihole
|
||||
Subnet=172.20.0.0/16
|
||||
4
quadlets/pihole/pihole.pod
Normal file
4
quadlets/pihole/pihole.pod
Normal file
@@ -0,0 +1,4 @@
|
||||
[Pod]
|
||||
PodName=pihole
|
||||
PublishPort=5335:53
|
||||
PublishPort=9005:80
|
||||
7
quadlets/pihole/unbound-conf.volume
Normal file
7
quadlets/pihole/unbound-conf.volume
Normal 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
|
||||
7
quadlets/pihole/unbound-iana.volume
Normal file
7
quadlets/pihole/unbound-iana.volume
Normal 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
|
||||
7
quadlets/pihole/unbound-log.volume
Normal file
7
quadlets/pihole/unbound-log.volume
Normal 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
|
||||
7
quadlets/pihole/unbound-redis-cache.volume
Normal file
7
quadlets/pihole/unbound-redis-cache.volume
Normal 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
|
||||
7
quadlets/pihole/unbound-redis-conf.volume
Normal file
7
quadlets/pihole/unbound-redis-conf.volume
Normal 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
|
||||
7
quadlets/pihole/unbound-redis-data.volume
Normal file
7
quadlets/pihole/unbound-redis-data.volume
Normal 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
|
||||
19
quadlets/pihole/unbound-redis-socket.container
Normal file
19
quadlets/pihole/unbound-redis-socket.container
Normal 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
|
||||
27
quadlets/pihole/unbound-redis.container
Normal file
27
quadlets/pihole/unbound-redis.container
Normal 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
|
||||
7
quadlets/pihole/unbound-zones.volume
Normal file
7
quadlets/pihole/unbound-zones.volume
Normal 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
|
||||
38
quadlets/pihole/unbound.container
Normal file
38
quadlets/pihole/unbound.container
Normal 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
|
||||
7
quadlets/pihole/unbound.volume
Normal file
7
quadlets/pihole/unbound.volume
Normal file
@@ -0,0 +1,7 @@
|
||||
[Volume]
|
||||
Copy=true
|
||||
Device=/var/mnt/nas/containers/pihole/storage/unbound
|
||||
Driver=local
|
||||
Options=bind
|
||||
Type=none
|
||||
VolumeName=unbound
|
||||
Reference in New Issue
Block a user