Self-host Outline with Levelrail

Verified

A fast, structured team wiki and knowledge base with real-time collaborative editing.

  • AuthoroutlineVerified by Levelrail
  • LicenceBUSL-1.1
  • Memory512 MiB
  • Archarm64
  • Services3

How to self-host Outline

  1. Pull the images

    3 images are pulled on your server.

    Show images
    • postgres:16-alpine
    • outlinewiki/outline:0.79.0
    • redis:7-alpine
  2. Create the app

    3 services start in a single Compose app, with 3 named volume mounts for your data, on port 3000.

  3. Fill in the secrets

    4 secrets are generated and stored encrypted, 6 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Outline requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 tested
Ports
3000
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
BUSL-1.1, source available
  • Verified. Verified on arm64 with image tag 0.79.0. Our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 3000 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Outline. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Outline docs page.

Deploy Outline your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Outline from the CLI

levelrail-cli templates deploy outline --name my-outline

Deploy Outline with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/outline/deploy

Outline configuration

Outline services

ServiceImagePortsVolumes
db postgres:16-alpine none outline_db_data -> /var/lib/postgresql/data
outline outlinewiki/outline:0.79.0 3000 outline_data -> /var/lib/outline/data
redis redis:7-alpine none outline_redis_data -> /data

Outline environment variables

VariableServiceValue
POSTGRES_DB db Preset by the template
POSTGRES_PASSWORD db Generated at deploy
POSTGRES_USER db Preset by the template
DATABASE_URL outline Generated at deploy
FORCE_HTTPS outline Preset by the template
PGSSLMODE outline Preset by the template
REDIS_URL outline Preset by the template
SECRET_KEY outline Generated at deploy
Show all 10 variables
  • URLoutlinePreset by the template
  • UTILS_SECREToutlineGenerated at deploy

Ports and volumes

Ports
3000
Volumes
3 named mounts: outline_db_data -> /var/lib/postgresql/data, outline_data -> /var/lib/outline/data, outline_redis_data -> /data

Outline FAQ

How much memory does Outline need?

The catalog lists about 512 MiB of memory for Outline across its 3 services.

Does Outline run on arm64?

For Outline, arm64 is tested; amd64 is image published.

What licence is Outline under?

Outline is licensed under BUSL-1.1, which is source-available, so read the terms before commercial use.

Does Outline need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Outline bundle?

The template includes Postgres and Redis, running as its own service.

Which ports does Outline use?

Outline listens on port 3000 inside the stack.

Where does Outline keep its data?

In named volumes: outline_db_data mounted at /var/lib/postgresql/data, outline_data mounted at /var/lib/outline/data and outline_redis_data mounted at /data.

Can I deploy Outline on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id outline for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, outlinewiki/outline:0.79.0, redis:7-alpine is what you deploy there.

levelrail-cli templates deploy outline --name my-outline