AdGuard Home
Network-wide ads and trackers blocking DNS server
Alternative to: nextdns
AdGuard Home is free and open source network-wide software for blocking ads and tracking, working as a DNS server that needs no client-side software. Manage it from a web admin interface with custom blocklists, parental control, safe search enforcement, per-client settings, a built-in DHCP server and encrypted DNS (DNS-over-HTTPS, DNS-over-TLS, DNSCrypt) support.
AdGuard Home Docker Compose example
Self-host AdGuard Home on your own server, homelab, or VPS starting from this Docker Compose example.
It runs AdGuard Home in Docker containers using the official adguard/adguardhome:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
adguardhome:
image: adguard/adguardhome:latest
volumes:
# Runtime data: query log, statistics, filter lists and sessions.
- work:/opt/adguardhome/work
# Configuration directory holding AdGuardHome.yaml, written by the first-run setup wizard.
# The web UI (setup wizard on first start) listens on port 3000; keep the
# "Admin Web Interface" port at 3000 in the wizard so the UI stays on the same port.
- conf:/opt/adguardhome/conf
restart: unless-stopped
volumes:
work:
conf: Prefer a managed setup? WinterFlow installs, configures, and updates AdGuard Home for you using this same Docker Compose configuration.