From 6f5212ee28882dd91e3e2aeabd6637b414433638 Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Thu, 23 Nov 2023 07:54:54 +0000 Subject: [PATCH] Initial commit --- .gitignore | 4 ++++ README.md | 4 ++++ docker-compose.yml | 24 ++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ef08ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.env +conf/ +etc-dnsmasq.d/ +etc-pihole/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2e3c7a --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Configuration for a local PiHole setup +=========================================== + +This repository contains a docker compose file for a local PiHole setup. Variables used in the docker compose file need to be provided in an .env file. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..66d3501 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3" + +# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ +services: + pihole: + container_name: pihole + image: pihole/pihole:2023.11.0 + # For DHCP it is recommended to remove these ports and instead add: network_mode: "host" + ports: + - "53:53/tcp" + - "53:53/udp" + #- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server + - "8000:80/tcp" + environment: + TZ: 'Europe/Berlin' + WEBPASSWORD: ${WEB_PASSWORD} + FTLCONF_LOCAL_IPV4: ${FTLCONF_LOCAL_IPV4} + FTLCONF_LOCAL_IPV6: ${FTLCONF_LOCAL_IPV6} + FTLCONF_RATE_LIMIT: '0/0' + # Volumes store your data between container upgrades + volumes: + - './etc-pihole:/etc/pihole' + - './etc-dnsmasq.d:/etc/dnsmasq.d' + restart: unless-stopped