# ![Authelia](<https://daemonless.io/images/logos/authelia-server.svg#only-light>) ![Authelia](<https://daemonless.io/images/logos/authelia-server-dark.svg#only-dark>) Authelia

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

Authelia on FreeBSD.

|  |  |
| --- | --- |
| **Port** | `9091` |
| **Registry** | [`ghcr.io/daemonless/authelia-server`](<https://github.com/daemonless/authelia-server/pkgs/container/authelia-server>) |
| **Daemonless** | [daemonless/authelia-server](<https://github.com/daemonless/authelia-server>) |
| **Source** | [authelia/authelia](<https://github.com/authelia/authelia>) |
| **Website** | [authelia.com](<https://authelia.com/>) |

## 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 **Authelia** on FreeBSD with [fjord](<https://fjord.daemonless.io>):

```
fjord install authelia-server
```

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

**1\.** Save as `.env` and fill in what is empty:

```
# Authelia for FreeBSD (Daemonless)
# Copy to .env and edit.

# The https address you open Authelia at, e.g. https://auth.example.com
# (first start writes a config for it)
PUBLIC_URL=

# Authelia configuration directory (authelia.yml, users_database.yml)
CONFIG_LOCATION=/containers/authelia-server/config

# Redis session store data
REDIS_DATA_LOCATION=/containers/authelia-server/redis

# Timezone (TZ identifier)
# TZ=UTC
```

**2\.** Save as `compose.yaml`:

```
name: authelia

services:
  authelia-server:
    image: ghcr.io/daemonless/authelia-server:latest
    container_name: authelia-server
    restart: unless-stopped
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=${TZ:-UTC}
      - PUBLIC_URL=${PUBLIC_URL}
      - AUTHELIA_SESSION_REDIS_HOST=${AUTHELIA_SESSION_REDIS_HOST:-127.0.0.1}
    volumes:
      - ${CONFIG_LOCATION}:/config
    ports:
      - 9091:9091
    depends_on:
      - redis

  redis:
    container_name: authelia_redis
    image: ghcr.io/daemonless/redis:latest
    restart: unless-stopped
    network_mode: host
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${REDIS_DATA_LOCATION}:/config
```

Then run `podman-compose up -d`.

```
# .env

DIRECTOR_PROJECT=authelia-server
PUID=1000
PGID=1000
TZ=UTC
PUBLIC_URL=
AUTHELIA_SESSION_REDIS_HOST=127.0.0.1
CONFIG_LOCATION=/containers/authelia-server/config
REDIS_DATA_LOCATION=/containers/authelia-server/redis
```

```
# appjail-director.yml

options:
  - alias:
  - ip4_inherit:
services:
  authelia-server:
    name: authelia_server
    options:
      - container: 'args:--pull'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
        - PUBLIC_URL: !ENV '${PUBLIC_URL}'
        - AUTHELIA_SESSION_REDIS_HOST: !ENV '${AUTHELIA_SESSION_REDIS_HOST}'
        - CONFIG_LOCATION: !ENV '${CONFIG_LOCATION}'
        - REDIS_DATA_LOCATION: !ENV '${REDIS_DATA_LOCATION}'
    volumes:
      - authelia-server: /config
  redis:
    name: redis
    options:
      - from: ghcr.io/daemonless/redis:latest
      - template: !ENV '${PWD}/template.conf'
    volumes:
      - redis_data: /config
volumes:
  authelia-server:
    device: '/containers/authelia-server'
  redis_data:
    device: !ENV '${REDIS_DATA_LOCATION}'
```

```
# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/authelia-server:${tag}
```

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

Open `http://<server>:9091` from another machine (the server's own browser can't use a published port).

## Parts

| Service | Image | Role |  |
| --- | --- | --- | --- |
| **authelia-server** | `ghcr.io/daemonless/authelia-server:latest` |  | [docs](<https://daemonless.io/images/authelia-server/index.md>) |
| **redis** | `ghcr.io/daemonless/redis:latest` |  | [docs](<https://daemonless.io/images/redis/index.md>) |

## 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 |
| `PUBLIC_URL` | \`\` | The https address you open Authelia at, e.g. [https://auth.example.com](<https://auth.example.com>). First start writes a working config for it; log in as admin, password in the log once and in /config/admin-password.txt |
| `AUTHELIA_SESSION_REDIS_HOST` | `127.0.0.1` | Where Authelia finds redis; overrides session.redis.host (fjord sets this; 127.0.0.1 on host networking) |
| `CONFIG_LOCATION` | `/containers/authelia-server/config` | Path to the Authelia configuration directory (authelia.yml, users\_database.yml) |
| `REDIS_DATA_LOCATION` | `/containers/authelia-server/redis` | Path to store the redis session store |

### Volumes

| Path | Description |
| --- | --- |
| `/config` | Configuration directory |

### Ports

| Port | Protocol | Description |
| --- | --- | --- |
| `9091` | TCP | Web UI |

## Version Tags

| Tag | Description | Best For |
| :--- | :--- | :--- |
| `latest` | **Upstream Binary**. Built from official release. | Most users — recommended. |
| `pkg` | **FreeBSD Quarterly**. Uses stable, tested packages. | Most users — recommended. |
| `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.
