Skip to content

Instantly share code, notes, and snippets.

@housser
Created November 14, 2024 20:19
Show Gist options
  • Save housser/0264cea27bc98ae4f2e9ebff9b64075e to your computer and use it in GitHub Desktop.
Save housser/0264cea27bc98ae4f2e9ebff9b64075e to your computer and use it in GitHub Desktop.
Running pihole on Qnap NAS with Container Station

This is based on the application template that is in the Container Station, but uses the latest version of the pihole image.

version: "3"
services:
pihole:
image: pihole/pihole:latest
networks:
qnet-network:
ipv4_address: 10.0.0.100
environment:
WEBPASSWORD: ${WEB_PASSWORD}
TZ: America/Vancouver
volumes:
- etc-pihole:/etc/pihole
- etc-dnsmasq.d:/etc/dnsmasq.d
restart: unless-stopped
networks:
qnet-network:
driver_opts:
iface: eth0
driver: qnet
ipam:
driver: qnet
options:
iface: eth0
config:
- subnet: 10.0.0.0/24
gateway: 10.0.0.1
volumes:
etc-pihole:
etc-dnsmasq.d:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment