# ![Outline](<https://daemonless.io/images/logos/outline.svg>) Outline

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

A fast, collaborative knowledge base for your team, with rich-text documents, nested collections and full-text search.

- [![Outline screenshot 1](<https://daemonless.io/images/screenshots/outline/01-editor.png>)](</images/screenshots/outline/01-editor.png>)
- [![Outline screenshot 2](<https://daemonless.io/images/screenshots/outline/02-command-bar.png>)](</images/screenshots/outline/02-command-bar.png>)
- [![Outline screenshot 3](<https://daemonless.io/images/screenshots/outline/03-collection-sharing.png>)](</images/screenshots/outline/03-collection-sharing.png>)

|  |  |
| --- | --- |
| **Port** | `${WEB_HOST_PORT:-3000}` |
| **Registry** | [`ghcr.io/daemonless/outline`](<https://github.com/daemonless/outline/pkgs/container/outline>) |
| **Daemonless** | [daemonless/outline](<https://github.com/daemonless/outline>) |
| **Source** | [outline/outline](<https://github.com/outline/outline>) |
| **Website** | [www.getoutline.com](<https://www.getoutline.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 **Outline** on FreeBSD with [fjord](<https://fjord.daemonless.io>):

```
fjord install outline
```

Or open the **App Store** in the fjord web UI and install **Outline** 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:

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

# Where data lives on the host
CONFIG_LOCATION=/containers/outline/config
POSTGRES_DATA_LOCATION=/containers/outline/postgres
REDIS_DATA_LOCATION=/containers/outline/redis

# Public URL Outline is reached on. Must match what the browser uses.
URL=http://localhost:3000
WEB_HOST_PORT=3000

# Set a strong password before the first start.
POSTGRES_PASSWORD=

PUID=1000
PGID=1000
TZ=UTC
```

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

```
name: outline

services:
  outline:
    image: ghcr.io/daemonless/outline:latest
    container_name: outline
    restart: unless-stopped
    depends_on:
      - postgres
      - redis
    environment:
      - PUID=${PUID:-1000}
      - PGID=${PGID:-1000}
      - TZ=${TZ:-UTC}
      - URL=${URL}
      - PORT=3000
      - SECRET_KEY=${SECRET_KEY:-}
      - UTILS_SECRET=${UTILS_SECRET:-}
      - DATABASE_URL=postgres://outline:${POSTGRES_PASSWORD}@${POSTGRES_HOSTNAME:-postgres}:5432/outline
      - PGSSLMODE=disable
      - REDIS_URL=redis://${REDIS_HOSTNAME:-redis}:6379
      - FORCE_HTTPS=${FORCE_HTTPS:-false}
      - SMTP_HOST=${SMTP_HOST:-}
      - SMTP_PORT=${SMTP_PORT:-}
      - SMTP_USERNAME=${SMTP_USERNAME:-}
      - SMTP_PASSWORD=${SMTP_PASSWORD:-}
      - SMTP_FROM_EMAIL=${SMTP_FROM_EMAIL:-}
      - SMTP_SECURE=${SMTP_SECURE:-true}
      - OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-}
      - OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-}
      - OIDC_ISSUER_URL=${OIDC_ISSUER_URL:-}
      - OIDC_DISPLAY_NAME=${OIDC_DISPLAY_NAME:-OpenID Connect}
    volumes:
      - ${CONFIG_LOCATION}:/config
    ports:
      - target: 3000
        published: ${WEB_HOST_PORT:-3000}

  postgres:
    image: ghcr.io/daemonless/postgres:18
    container_name: outline-postgres
    restart: unless-stopped
    annotations:
      org.freebsd.jail.allow.sysvipc: "true"
    environment:
      - POSTGRES_USER=outline
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=outline
      - PUID=${PUID:-1000}
      - PGID=${PGID:-1000}
      - TZ=${TZ:-UTC}
    volumes:
      - ${POSTGRES_DATA_LOCATION}:/var/lib/postgresql/data

  redis:
    image: ghcr.io/daemonless/redis:latest
    container_name: outline-redis
    restart: unless-stopped
    environment:
      - PUID=${PUID:-1000}
      - PGID=${PGID:-1000}
      - TZ=${TZ:-UTC}
    volumes:
      - ${REDIS_DATA_LOCATION}:/config
```

Then run `podman-compose up -d`.

Open `http://<server>:${WEB_HOST_PORT:-3000}` from another machine (the server's own browser can't use a published port).

## Parts

| Service | Image | Role |  |
| --- | --- | --- | --- |
| **outline** | `ghcr.io/daemonless/outline:latest` | Collaborative knowledge base web UI and API | [docs](<https://daemonless.io/images/outline/index.md>) |
| **postgres** | `ghcr.io/daemonless/postgres:18` | PostgreSQL database for documents, collections and users | [docs](<https://daemonless.io/images/postgres/index.md>) |
| **redis** | `ghcr.io/daemonless/redis:latest` | Redis cache and pub/sub broker for real-time collaboration | [docs](<https://daemonless.io/images/redis/index.md>) |

## Setup Instructions

The first visit asks for a workspace name and an admin account, and signs you in. To sign in again later, Outline needs a way to prove who you are, because it has no passwords: set up `SMTP_*` for sign-in links by email, or `OIDC_*` for single sign-on. Other providers are in the [authentication docs](<https://docs.getoutline.com/s/hosting/doc/authentication-7ViUmeMISY>). Do this before you sign out.

`URL` must match what the browser uses. Behind a reverse proxy with TLS, set `URL` to the https address and keep `FORCE_HTTPS=false`, because the proxy handles the redirect.

Uploads are stored under `/config/data`. S3 storage does not work on FreeBSD: its AWS library needs a native binding that has no FreeBSD build.

`SECRET_KEY` and `UTILS_SECRET` are generated into `/config/secrets.env` on first start. Keep `/config`: a new `SECRET_KEY` signs everyone out and makes encrypted fields unreadable.

Outline uses the Business Source License 1.1, which is not an open source license. You can run it for your own team, but not as a commercial document service for others.

## 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 |
| `URL` | `http://localhost:3000` | Public URL of this instance, as the browser reaches it. Outline builds links from it |
| `PORT` | `3000` | Port Outline listens on inside the container |
| `SECRET_KEY` | `<SECRET_KEY>` | 64 hex characters (`openssl rand -hex 32`). Generated into /config/secrets.env if unset |
| `UTILS_SECRET` | `<UTILS_SECRET>` | A second, different secret. Generated with SECRET\_KEY if unset |
| `DATABASE_URL` | `postgres://outline:${POSTGRES_PASSWORD}@${POSTGRES_HOSTNAME:-postgres}:5432/outline` | PostgreSQL connection string. The compose builds it from POSTGRES\_PASSWORD |
| `PGSSLMODE` | `disable` | Set to disable for a PostgreSQL without TLS, as in this stack |
| `REDIS_URL` | `redis://${REDIS_HOSTNAME:-redis}:6379` | Redis connection string |
| `FORCE_HTTPS` | `false` | Redirect every request to https. Keep false unless URL is https |
| `SMTP_HOST` | \`\` | Mail server. Outline has no passwords: without this or single sign-on, nobody can sign back in |
| `SMTP_PORT` | \`\` | Mail server port |
| `SMTP_USERNAME` | \`\` | Mail server username |
| `SMTP_PASSWORD` | `<SMTP_PASSWORD>` | Mail server password |
| `SMTP_FROM_EMAIL` | \`\` | Address mail is sent from |
| `SMTP_SECURE` | `true` | Connect to the mail server over TLS |
| `OIDC_CLIENT_ID` | \`\` | Single sign-on client ID |
| `OIDC_CLIENT_SECRET` | `<OIDC_CLIENT_SECRET>` | Single sign-on client secret |
| `OIDC_ISSUER_URL` | \`\` | Single sign-on issuer URL |
| `OIDC_DISPLAY_NAME` | `OpenID Connect` | Name on the single sign-on button |
| `CONFIG_LOCATION` | `/containers/outline/config` | Host folder for secrets and uploaded files |
| `POSTGRES_DATA_LOCATION` | `/containers/outline/postgres` | Host folder for the database |
| `REDIS_DATA_LOCATION` | `/containers/outline/redis` | Host folder for the cache |
| `WEB_HOST_PORT` | `3000` | Host port for the web UI |
| `POSTGRES_PASSWORD` | `<POSTGRES_PASSWORD>` | PostgreSQL password |
| `POSTGRES_HOSTNAME` | \`\` | Where Outline finds PostgreSQL (fjord sets this; postgres on the default stack network) |
| `REDIS_HOSTNAME` | \`\` | Where Outline finds Redis (fjord sets this; redis on the default stack network) |

### Volumes

| Path | Description |
| --- | --- |
| `/config` | Secrets, and uploaded files under /config/data |

### Ports

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

## Version Tags

| Tag | Description | Best For |
| :--- | :--- | :--- |
| `latest` | **FreeBSD Port**. Built from latest FreeBSD packages. | Most users — recommended. |

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