# Self-host Outline

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

- Page: https://levelrail.com/templates/outline/
- JSON: https://levelrail.com/templates/outline.json
- Category: Productivity
- Licence: BUSL-1.1 (Source available)
- Source: https://github.com/outline/outline
- Upstream docs: https://docs.getoutline.com

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 0.79.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| 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 |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| outline | DATABASE_URL | generated |
| outline | FORCE_HTTPS | preset |
| outline | PGSSLMODE | preset |
| outline | REDIS_URL | preset |
| outline | SECRET_KEY | generated |
| outline | URL | preset |
| outline | UTILS_SECRET | generated |

## Deploy

### CLI

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

### API

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

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

## Questions

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

Self-host Outline, Outline docker compose file, deploy Outline on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
