# ![AdGuard Home](<https://daemonless.io/images/logos/adguardhome.svg>) AdGuard Home

[![Build Status](<https://img.shields.io/github/actions/workflow/status/daemonless/adguardhome/build.yaml?style=flat-square&amp;label=Build&amp;color=green>)](<https://github.com/daemonless/adguardhome/actions>) [![Last Commit](<https://img.shields.io/github/last-commit/daemonless/adguardhome?style=flat-square&amp;label=Last+Commit&amp;color=blue>)](<https://github.com/daemonless/adguardhome/commits>) [![OCI Pulls](<https://img.shields.io/docker/pulls/daemonless/adguardhome?style=flat-square&amp;label=OCI+Pulls&amp;color=blue>)](<https://hub.docker.com/r/daemonless/adguardhome>)

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.

[[![AdGuard Home screenshot 1](<https://daemonless.io/images/screenshots/adguardhome/1.gif>)](</images/screenshots/adguardhome/1.gif>)](</images/screenshots/adguardhome/1.gif>)

|  |  |
| --- | --- |
| **Port** | `3000` |
| **Registry** | [`ghcr.io/daemonless/adguardhome`](<https://github.com/daemonless/adguardhome/pkgs/container/adguardhome>) |
| **Daemonless** | [daemonless/adguardhome](<https://github.com/daemonless/adguardhome>) |
| **Source** | [AdguardTeam/AdGuardHome](<https://github.com/AdguardTeam/AdGuardHome>) |
| **Website** | [adguard.com/adguard-home.html](<https://adguard.com/adguard-home.html>) |

## Prerequisites

Before deploying, ensure your host environment is ready. See the [Quick Start Guide](<https://daemonless.io/guides/quick-start/index.md>) for host setup instructions, including the security model for host vs. container privileges.

## Deployment

**Customize Paths, UID & Ports**

Install and manage **AdGuard Home** on FreeBSD with [fjord](<https://fjord.daemonless.io>):

```
fjord install adguardhome
```

Or open the **App Store** in the fjord web UI and install **AdGuard Home** from the wizard. New to fjord? See the [Install Guide](<https://fjord.daemonless.io/install/>).

```
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/udp"
      - "67:67/udp"
      - "68:68/udp"
      - "80:80"
      - "443:443"
      - "443:443/udp"
      - "784:784/udp"
      - "853:853"
      - "853:853/udp"
      - "5443:5443"
      - "5443:5443/udp"
      - "6060:6060"
      - "8853:8853/udp"
    # 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`.

> [!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.

```
# .env

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

```
# 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

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]
>
> **Experimental**
>
> 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 |  |

## 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. |

> [!NOTE]
>
> **Implementation Details**
>
> - **Architectures:** amd64
> - **User:** `bsd` (UID/GID set via [PUID/PGID](<https://daemonless.io/guides/permissions/index.md>)). Defaults to `1000:1000`.
> - **Base:** Built on `ghcr.io/daemonless/base` (FreeBSD 15).

---

Need help? Join our [Discord](<https://discord.gg/Kb9tkhecZT>) community.
