Skip to content

Instantly share code, notes, and snippets.

@vadimstasiev
Last active July 8, 2022 22:26
Show Gist options
  • Select an option

  • Save vadimstasiev/cf52960c1bac11b12b5563012695c5ed to your computer and use it in GitHub Desktop.

Select an option

Save vadimstasiev/cf52960c1bac11b12b5563012695c5ed to your computer and use it in GitHub Desktop.
pihole + unbound

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment