Skip to content

About

Network-wide ad and tracker blocking DNS server. Covers all devices on your network with no client-side software — includes DoH, DoT, DoQ, and a built-in DHCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AdGuard Home

Build Status Last Commit OCI Pulls

Network-wide ad and tracker blocking DNS server. Covers all devices on your network with no client-side software — includes DoH, DoT, DoQ, and a built-in DHCP server.

Port 3000
Registry ghcr.io/daemonless/adguardhome
Source https://github.com/AdguardTeam/AdGuardHome
Website https://adguard.com/adguard-home.html

Version Tags

Tag Description Best For
latest FreeBSD Port. Built from FreeBSD packages. Most users — recommended.
pkg FreeBSD Quarterly. Uses stable, tested packages. Production stability.
pkg-latest FreeBSD Latest. Rolling package updates. Staying current.

Prerequisites

Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions.

Deployment

Podman Compose

services:
  adguardhome:
    image: "ghcr.io/daemonless/adguardhome:latest"
    container_name: adguardhome
    environment:
      - PUID=1000  # User ID for the application process
      - PGID=1000  # Group ID for the application process
      - TZ=UTC  # Timezone for the container
    volumes:
      - "/containers/adguardhome/conf:/opt/adguardhome/conf"
      - "/containers/adguardhome/work:/opt/adguardhome/work"
    ports:
      - "3000:3000"
      - "53:53"
      - "53:53"
      - "67:67"
      - "68:68"
      - "80:80"
      - "443:443"
      - "443:443"
      - "784:784"
      - "853:853"
      - "853:853"
      - "5443:5443"
      - "5443:5443"
      - "6060:6060"
      - "8853:8853"
    # always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
    restart: always

Save as compose.yaml, then run podman-compose up -d.

AppJail Director

.env:

# .env

DIRECTOR_PROJECT=adguardhome
PUID=1000
PGID=1000
TZ=UTC

appjail-director.yml:

# appjail-director.yml

options:
  - virtualnet: ':<random> default'
  - nat:
services:
  adguardhome:
    name: adguardhome
    options:
      - container: 'args:--pull'
      - expose: '3000:3000 proto:tcp'
      - expose: '53:53 proto:tcp'
      - expose: '53:53 proto:udp'
      - expose: '67:67 proto:udp'
      - expose: '68:68 proto:udp'
      - expose: '80:80 proto:tcp'
      - expose: '443:443 proto:tcp'
      - expose: '443:443 proto:udp'
      - expose: '784:784 proto:udp'
      - expose: '853:853 proto:tcp'
      - expose: '853:853 proto:udp'
      - expose: '5443:5443 proto:tcp'
      - expose: '5443:5443 proto:udp'
      - expose: '6060:6060 proto:tcp'
      - expose: '8853:8853 proto:udp'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
    volumes:
      - adguardhome_conf: /opt/adguardhome/conf
      - adguardhome_work: /opt/adguardhome/work
volumes:
  adguardhome_conf:
    device: '/containers/adguardhome/conf'
  adguardhome_work:
    device: '/containers/adguardhome/work'

Makejail:

# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/adguardhome:${tag}

Save the files above, then run appjail-director up.

Warning

Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

To avoid exposing ports, just remove the expose option in your appjail-director.yml or from your command-line arguments.

Bastille

Warning

Bastille's OCI support is experimental. It requires buildah and shares the host network stack (inherit). Mount volumes with --volume HOST JAIL; without it, image-declared volumes are stored under ${bastille_volumesdir}/${jail}.

services:
  adguardhome:
    name: adguardhome
    image: "ghcr.io/daemonless/adguardhome:latest"
    network:
      - mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
    volumes:
      - "/containers/adguardhome/conf:/opt/adguardhome/conf"
      - "/containers/adguardhome/work:/opt/adguardhome/work"

Save as bastille-compose.yml, then run bastille up.

Parameters

Environment Variables

Variable Default Description
PUID 1000 User ID for the application process
PGID 1000 Group ID for the application process
TZ UTC Timezone for the container

Volumes

Path Description
/opt/adguardhome/conf Configuration files
/opt/adguardhome/work Work directory (database, logs, data)

Ports

Port Protocol Description
3000 TCP Web UI (Setup/Admin)
53 TCP DNS (TCP/UDP)
53 UDP DNS (TCP/UDP)
67 UDP
68 UDP
80 TCP HTTP
443 TCP HTTPS / DNS-over-HTTPS (TCP/UDP)
443 UDP HTTPS / DNS-over-HTTPS (TCP/UDP)
784 UDP
853 TCP DNS-over-TLS (TCP/UDP)
853 UDP DNS-over-TLS (TCP/UDP)
5443 TCP DNS-over-HTTPS (TCP/UDP)
5443 UDP DNS-over-HTTPS (TCP/UDP)
6060 TCP Admin API
8853 UDP

Architectures: amd64 User: bsd (UID/GID via PUID/PGID, defaults to 1000:1000) Base: FreeBSD 15


Need help? Join our Discord community.

About

Network-wide ad and tracker blocking DNS server. Covers all devices on your network with no client-side software — includes DoH, DoT, DoQ, and a built-in DHCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages