From 447f2176d65c475d7e82e41997255dfb9d733844 Mon Sep 17 00:00:00 2001 From: Abhilesh Dhawanjewar Date: Thu, 23 Sep 2021 07:22:40 -0500 Subject: [PATCH] Added docker-compose.yml for Pihole --- pihole/docker-compose.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pihole/docker-compose.yml diff --git a/pihole/docker-compose.yml b/pihole/docker-compose.yml new file mode 100644 index 0000000..b1bf46d --- /dev/null +++ b/pihole/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:latest + ports: + - "192.168.X.X:53:53/tcp" # Change this + - "192.168.X.X:53:53/udp" # Change this + - "67:67/udp" + - "8053:80/tcp" + environment: + TZ: 'America/Chicago' # Change this + # WEBPASSWORD: 'set a secure password here or it will be random' + # Volumes store your data between container upgrades + volumes: + - '/home/pi/pihole/etc-pihole:/etc/pihole/' + - '/home/pi/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/' + # Recommended but not required (DHCP needs NET_ADMIN) + # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities + cap_add: + - NET_ADMIN + restart: unless-stopped