ARM (raspberry / other arm device) docker-compose config to set up pihole + unbound with no need for any extra configuration
docker-compose up -d
version: "2"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
networks:
default:
ipv4_address: 172.28.0.3
environment:
TZ: "Europe/London"
PIHOLE_DNS_: "172.28.0.2;172.28.0.2"
volumes:
- "/etc/docker-configs/pihole/pihole:/etc/pihole"
- "/etc/docker-configs/pihole/dnsmasq:/etc/dnsmasq.d"
cap_add:
- NET_ADMIN
restart: unless-stopped
unbound:
image: klutchell/unbound
networks:
default:
ipv4_address: 172.28.0.2
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/24
gateway: 172.28.0.1