pihole: Initial commit

This commit is contained in:
PorridgePi
2022-09-02 15:20:53 +01:00
parent 876189d37a
commit 3f792ad829
2 changed files with 110 additions and 0 deletions

42
pihole/docker-compose.yml Normal file
View File

@@ -0,0 +1,42 @@
version: "3.9"
networks:
dns_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "8180:80/tcp"
hostname: pihole
networks:
dns_net:
ipv4_address: 172.20.0.10
environment:
- "TZ=Asia/Singapore"
- "WEBPASSWORD=${PIHOLE_PASSWORD}"
- "DNS1=172.20.0.11#5335"
- "DNS2=no"
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
unbound:
image: mvance/unbound-rpi:latest
container_name: unbound
restart: unless-stopped
volumes:
- "./unbound:/opt/unbound/etc/unbound"
networks:
dns_net:
ipv4_address: 172.20.0.11
healthcheck:
disable: true