diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-18 15:56:31 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-18 15:57:46 +0200 |
commit | b18e29b389792267269c77db711b54d38e6b9d59 (patch) | |
tree | 973ad914da9105cc526df1690cc99dc038fea5e4 /Applications/PiHole |
initial commit
Diffstat (limited to 'Applications/PiHole')
-rw-r--r-- | Applications/PiHole/.env.example | 2 | ||||
-rw-r--r-- | Applications/PiHole/.env.pihole.example | 47 | ||||
-rw-r--r-- | Applications/PiHole/docker-compose.yml | 35 | ||||
-rw-r--r-- | Applications/PiHole/volumes/pihole/custom.list | 3 |
4 files changed, 87 insertions, 0 deletions
diff --git a/Applications/PiHole/.env.example b/Applications/PiHole/.env.example new file mode 100644 index 0000000..4e95c38 --- /dev/null +++ b/Applications/PiHole/.env.example @@ -0,0 +1,2 @@ +DOMAIN=pi.hole.archion.sls19.lan +TRAEFIK_NETWORK=traefik-public diff --git a/Applications/PiHole/.env.pihole.example b/Applications/PiHole/.env.pihole.example new file mode 100644 index 0000000..6c62aab --- /dev/null +++ b/Applications/PiHole/.env.pihole.example @@ -0,0 +1,47 @@ +PIHOLE_IP= +ROUTER_IP= + +TZ=Europe/Berlin +WEBPASSWORD= +FTLCONF_LOCAL_IPv4=${PIHOLE_IP} + +PIHOLE_DNS_=${ROUTER_IP} + +DHCP_ACTIVE=true +DHCP_START= +DHCP_END + +# Environment Variables documented at: https://github.com/pi-hole/docker-pi-hole/#environment-variables + + +PIHOLE_IP= +ROUTER_IP= + + +## Recommended + +TZ=Europe/Berlin +WEBPASSWORD= +FTLCONF_LOCAL_IPV4=${PIHOLE_IP} + + +## Optional + +PIHOLE_DNS_=${ROUTER_IP} + +DHCP_ACTIVE=true +DHCP_START=192.168.178.20 +DHCP_END=192.168.178.200 +DHCP_ROUTER=${ROUTER_IP} + +WEBTHEME=default-dark + + +## Advanced + +# + + +## Experimental + +# diff --git a/Applications/PiHole/docker-compose.yml b/Applications/PiHole/docker-compose.yml new file mode 100644 index 0000000..b3fbabd --- /dev/null +++ b/Applications/PiHole/docker-compose.yml @@ -0,0 +1,35 @@ +version: "3" + +services: + pihole: + image: "pihole/pihole" + container_name: "pihole" + restart: "unless-stopped" + cap_add: + - NET_ADMIN + dns: + - "127.0.0.1" + hostname: "${DOMAIN}" + ports: + - "53:53/tcp" + - "53:53/udp" + - "67:67/udp" + environment: + - "VIRTUAL_HOST=${DOMAIN}" + - "DNSMASQ_LISTENING=all" + env_file: ".env.pihole" + volumes: + - "./volumes/pihole/data:/etc/pihole" + - "./volumes/pihole/dnsmasq.d:/etc/dnsmasq.d" + - "./volumes/pihole/custom.list:/etc/pihole/custom.list" + networks: + - "traefik" + labels: + - "traefik.enable=true" + - "traefik.http.routers.pihole.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.pihole.entrypoints=web" + - "traefik.http.services.pihole.loadbalancer.server.port=80" + +networks: + traefik: + name: "${TRAEFIK_NETWORK}" diff --git a/Applications/PiHole/volumes/pihole/custom.list b/Applications/PiHole/volumes/pihole/custom.list new file mode 100644 index 0000000..7e49694 --- /dev/null +++ b/Applications/PiHole/volumes/pihole/custom.list @@ -0,0 +1,3 @@ +127.0.0.1 pi.hole.archion.sls19.lan +127.0.0.1 traefik.archion.sls19.lan +127.0.0.1 cloud.archion.sls19.lan |