Self-host Outline

A collaborative team knowledge base and wiki built with React and Node.js; it has no password sign-in and needs an external sign-in provider. Run your own Outline on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

Updated November 23, 2026

Running your own Outline usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Outline behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

Just ask your agent

Open a Plus workspace (Outline runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

Set up Outline on this workspace and give me the link. Follow https://envhaven.com/self-host/outline.md

Then open the link it sends and create your Outline account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Outline’s docs require.

Or keep it private with Tailscale

The preview URL puts Outline on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Outline an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:

Set up Outline on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/outline.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
  • A Tailscale container runs beside Outline, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
  • Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
At a glance
What it isNotes, wikis and knowledge bases
LicenseBUSL-1.1
Runs asDocker (outlinewiki/outline)
Memoryminimum 512 MB; 1 GB or more recommended depending on the number of users (docs)
Plan that fitsPlus or larger
Web port3000
Documentationdocs.getoutline.com/s/hosting/

What your agent takes care of

  • Installing it. Outline runs from the official image, outlinewiki/outline, with its data in folders under ~/apps/outline.
  • Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
  • Locking it down first. What Outline’s docs say to set before it faces the internet, below.
  • Telling you what to back up: the PostgreSQL database, uploaded files: /var/lib/outline/data in the container (a docker volume or bind mount) with FILE_STORAGE=local, or the S3-compatible bucket and the .env or docker.env file, especially SECRET_KEY (docs).

The settings it needs behind a proxy

  • URL: Fully qualified public URL; when behind a proxy it is the proxy’s URL. Required. (docs)
  • FORCE_HTTPS (default true): Redirects http to https; set false when TLS is terminated outside Outline, otherwise a redirect loop can occur. (docs)
  • FORCE_HTTPS redirect loop fix: The troubleshooting page names FORCE_HTTPS=false as the first fix for an HTTP to HTTPS redirect loop. (docs)
  • PROXY_HEADERS_TRUSTED (and PROXY_IP_HEADER): Whether to trust X-Forwarded-* headers from an upstream proxy; PROXY_IP_HEADER picks the client-IP header (default X-Forwarded-For). (docs)
  • WebSocket forwarding: Collaborative editing needs WebSockets; without them documents cannot be edited. (docs)
  • SECRET_KEY and UTILS_SECRET: Required random keys (openssl rand -hex 32). (docs)
  • At least one sign-in provider (SLACK_CLIENT_ID/SECRET, GOOGLE_CLIENT_ID/SECRET, AZURE_, DISCORD_, OIDC_, GITLAB_, or email magic link via SMTP): Without one there is no way to sign in. (docs)
  • No password sign-in: Email plus password is not offered. (docs)
  • Slack redirect URL must be HTTPS: Slack sign-in callback is https://<host>/auth/slack.callback. (docs)
  • Google sign-in: Only works with a Google Workspace organisation. (docs)
  • OIDC_ISSUER_URL, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET: Generic OpenID Connect sign-in with automatic discovery. (docs)
  • CDN_URL (optional): Serve static assets from a CDN hostname whose origin is URL. (docs)

Before it faces the internet

  • Serve it over HTTPS only. (docs)
  • Generate fresh SECRET_KEY and UTILS_SECRET values; losing SECRET_KEY makes encrypted data unreadable. (docs)
  • Set PROXY_HEADERS_TRUSTED to false if not running behind a proxy. (docs)
  • Choose a sign-in provider deliberately; there is no local password, so access is exactly whoever your provider admits. (docs)

Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

  • “Import this folder of Markdown notes, keeping the folder structure.”
  • “Turn off public sign-ups now that my account exists.”
  • “Move Outline to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to domains.envhaven.app, and the agent changes Outline’s address settings to match.
  • “Update Outline to the latest release.” It pulls the new image and recreates the container, data kept.

Instructions for the agent

The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

Set up Outline on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, outlinewiki/outline, starting from the docs' compose file: https://docs.getoutline.com/s/hosting/doc/docker-7pfeLP5a8t.md. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: postgres (postgres:18); redis; https-portal (optional TLS front end in the sample); an external sign-in provider (Slack, Google Workspace, Entra, OIDC, Discord, GitLab or email magic link with SMTP).
- Keep the compose file in ~/apps/outline and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Outline's port 3000.
- The preview URL terminates HTTPS in front of Outline: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/outline.md for the preview URL, as Outline's docs describe for running behind a proxy; skip any that apply only when Outline serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/outline.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Outline up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.

What to know

  • In Docker, Outline’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
  • The sample .env sets the attachment cap to 262144000 bytes (250 MB), above Cloudflare’s 100 MB request limit; the file-storage page’s example uses 26214400 (25 MB). The docs name no built-in default, so set the value yourself. (docs)
  • The file-storage guide’s own example uses 25 MB. (docs)
  • Email sign-in and ‘document updated’ or invitation emails all need an SMTP server. (docs)
  • Google sign-in is limited to Google Workspace users, so a personal Google account cannot be used. (docs)
  • AI answers need an OpenAI (or Azure) API key and a PostgreSQL database with pgvector; nothing runs locally. (docs)
  • WebSockets are mandatory; a proxy that drops them leaves documents uneditable. (docs)
  • The maintainers say production use needs dev-ops experience. (docs)
  • Hosting Outline as a service for others breaches the BSL terms. (docs)
  • A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

Without a workspace

The manual route, on a server you run:

  1. Rent a Linux VPS, secure SSH, and create a user for the app.
  2. Install Docker and write a compose file from the official image.
  3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
  4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
  5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Outline’s own documentation covers each step for its install methods.

Sources

Facts about Outline come from its own documentation, checked on 2026-11-23: