Back to blog
Blog

Self-Host Outline Wiki on a VPS With HTTPS

Self-host Outline Wiki on a VPS with Docker, Nginx + Let’s Encrypt, plus update and backup routines for small teams.

By Anurag Singh
Updated on Nov 28, 2026
Category: Blog
Share article
Self-Host Outline Wiki on a VPS With HTTPS

SaaS wikis are easy—until you need predictable costs, clear data boundaries, and real admin control. For a small team, an agency, or a handful of production services, your wiki stops being “a tool” and starts acting like infrastructure.

This post shows how to self-host Outline Wiki on a VPS with HTTPS, then keep it stable with sensible updates and backups.

Outline is an open-source team knowledge base with a polished editor, collections, permissions, and optional SSO (depending on how you wire it up). You run the app on your own server, put it behind a reverse proxy, and choose where the data and uploads live.

The benefit is simple: your documentation can sit next to the systems it describes.

Why Outline fits small ops teams (and who it’s for)

Outline works best for teams that ship and maintain things. It gives you one place for runbooks, client handover notes, incident write-ups, architecture decisions, onboarding docs, and recurring checklists.

  • Dev + ops teams that want runbooks close to the infrastructure.
  • Agencies that want a private client-facing knowledge base without per-seat SaaS pricing surprises.
  • Product teams that need permissions and collections instead of a flat folder dump.

If your team already treats quality and process like product work, Outline fits that mindset. It feels structured without forcing everyone into a strict Markdown workflow.

Self-host Outline Wiki vs hosted wikis

Most teams compare Outline with Notion, Confluence, Slab, or a hosted Git-based docs stack. Any of those can work.

The key difference is what you optimize for: convenience versus control.

OptionWhat you gainWhat you give up
Hosted wiki (Notion/Confluence/etc.)Zero server work, quick onboardingRecurring fees, data residency limits, vendor policy changes
Self-host OutlineControl over data, predictable infra cost, integrate with your auth and networkYou own uptime, backups, updates, and security basics
Self-host “simple” wiki (flat files)Very low overheadWeaker permissions/workflows for teams; editing UX varies

Outline’s sweet spot is a “real” team wiki with a modern UI. You get that without parking your docs inside a SaaS tenant.

What you’ll run on your VPS (components and ports)

Outline is usually deployed with containers. A typical setup includes:

  • Outline app (web UI + API)
  • PostgreSQL for the database
  • Redis for caching/background tasks
  • Object storage for uploads (S3-compatible recommended). This can be external, or self-hosted (for example, MinIO) if you want everything on the same server.
  • Nginx as a reverse proxy terminating HTTPS

From the internet, you expose only 80/443. Everything else stays inside the Docker network.

Hosting note: Outline isn’t a shared-hosting project. Use a VPS where you control Docker, firewall rules, and TLS termination.

If you’d rather not babysit the OS and monitoring stack, managed VPS hosting is a clean way to run internal tools like this with less operational overhead.

Resource sizing for Outline (practical starting points)

In practice, attachments and concurrent editors drive resource needs more than raw page count. These are reasonable baselines for 2026:

  • Small team (up to ~15 users): 2 vCPU, 4 GB RAM, 50+ GB NVMe. PostgreSQL and Redis can share the host comfortably.
  • Growing team (~15–60 users): 4 vCPU, 8 GB RAM, 100+ GB NVMe. Consider moving uploads to S3-compatible storage early.
  • Busy wiki with lots of files: prioritize disk and backup bandwidth; attachments are what bite you first.

If you’re stacking services on the same VPS, leave headroom. PostgreSQL, Redis, and your reverse proxy can all fight for memory during spikes.

Deployment overview: Docker Compose + Nginx + Let’s Encrypt

This isn’t a full step-by-step install guide. It’s the working outline (and the copy/paste parts) you need to deploy confidently.

  1. Point a DNS name (example: wiki.example.com) to your VPS.
  2. Bring up Outline + Postgres + Redis with Docker Compose.
  3. Put Nginx in front, request a Let’s Encrypt certificate, and force HTTPS.
  4. Schedule backups (database + config + optional uploads).
  5. Update with short, predictable steps and roll back if needed.

If you want a refresher on reverse proxy patterns for Dockerized apps, HostMyCode’s Traefik HTTPS with Docker Compose guide is a helpful companion—even if you stay on Nginx.

Compose skeleton for Outline (keep secrets out of git)

Create a working directory such as /opt/outline. Put secrets in an .env file and services in docker-compose.yml.

Outline’s environment variables can shift between releases. Use this as a structure template, then confirm the exact variable names against Outline’s docs at deploy time.

# /opt/outline/.env
POSTGRES_DB=outline
POSTGRES_USER=outline
POSTGRES_PASSWORD=change_me_use_a_password_manager

REDIS_PASSWORD=change_me_too

# App basics
URL=https://wiki.example.com
SECRET_KEY=generate_a_long_random_string
UTILS_SECRET=generate_another_long_random_string

# Email (recommended so invites and notifications work)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=wiki@example.com
SMTP_PASS=change_me
SMTP_FROM=wiki@example.com
# /opt/outline/docker-compose.yml
services:
  postgres:
    image: postgres:16
    environment:
      POSTGRES_DB: ${POSTGRES_DB}
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    restart: unless-stopped

  redis:
    image: redis:7
    command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
    volumes:
      - ./data/redis:/data
    restart: unless-stopped

  outline:
    image: outlinewiki/outline:latest
    depends_on:
      - postgres
      - redis
    environment:
      URL: ${URL}
      SECRET_KEY: ${SECRET_KEY}
      UTILS_SECRET: ${UTILS_SECRET}
      DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
      REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379

      SMTP_HOST: ${SMTP_HOST}
      SMTP_PORT: ${SMTP_PORT}
      SMTP_USER: ${SMTP_USER}
      SMTP_PASS: ${SMTP_PASS}
      SMTP_FROM: ${SMTP_FROM}

      # Uploads: prefer S3-compatible storage.
      # Configure this per Outline’s current docs.

    restart: unless-stopped

networks:
  default:
    name: outline-net

Two things to keep you out of trouble:

  • Don’t publish Postgres/Redis ports to the internet. Keep them internal to Docker.
  • Pin versions for databases (postgres:16, redis:7). For the app image, pin to a specific tag once you’ve tested upgrades.

If you’d rather focus on the app than on noisy-neighbor performance or flaky disks, running it on a HostMyCode VPS gives you dedicated resources and full root control.

Nginx reverse proxy with HTTPS (Let’s Encrypt)

Nginx keeps the edge predictable. It handles TLS termination, security headers, and access logs.

Run Outline privately (Docker network / localhost), then proxy traffic through Nginx.

Example Nginx server block:

# /etc/nginx/sites-available/wiki.example.com
server {
  listen 80;
  server_name wiki.example.com;

  location /.well-known/acme-challenge/ {
    root /var/www/letsencrypt;
  }

  location / {
    return 301 https://$host$request_uri;
  }
}

server {
  listen 443 ssl http2;
  server_name wiki.example.com;

  ssl_certificate /etc/letsencrypt/live/wiki.example.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/wiki.example.com/privkey.pem;

  # Sensible headers for internal tools
  add_header X-Frame-Options "SAMEORIGIN" always;
  add_header X-Content-Type-Options "nosniff" always;
  add_header Referrer-Policy "strict-origin-when-cross-origin" always;

  client_max_body_size 50m;

  location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}

The proxy target (127.0.0.1:3000) assumes you publish Outline on localhost.

If you’d rather keep Outline completely unexposed, run Nginx as a container on the same Docker network and proxy to outline:3000 instead.

Certificate issuance is usually handled with Certbot:

sudo apt update
sudo apt install -y nginx certbot python3-certbot-nginx
sudo certbot --nginx -d wiki.example.com

If you also operate public sites, you’ll reuse these proxy patterns constantly. The approach in enabling HTTP/3 on Nginx carries over here too (even if you stick with HTTP/2 for an internal wiki).

Identity: keep login simple, but controlled

A wiki only pays off if people use it. Login friction matters, but so does offboarding.

For small teams, these setups tend to work best:

  • Email + password with strong password rules and MFA if your auth setup supports it.
  • SSO (OIDC/SAML) if you already have a provider (Google Workspace, Microsoft Entra ID, Authentik, Keycloak). This keeps offboarding clean.

Keep your admin account separate from day-to-day accounts. Store credentials and app secrets in a password manager, not in chat or tickets.

Backups you can restore: database first, then files

If Outline goes down and you can’t restore quickly, the wiki turns into a liability.

A backup plan that holds up has three parts:

  • PostgreSQL dump (the source of truth for documents and metadata)
  • Config and secrets (your .env, compose file, Nginx config)
  • Uploads/attachments (either in S3 storage or local volumes)

Example nightly database dump to a local folder (then sync offsite):

mkdir -p /var/backups/outline
chmod 700 /var/backups/outline

docker exec -t $(docker ps -qf name=postgres) \
  pg_dump -U outline outline | gzip > /var/backups/outline/outline-$(date +%F).sql.gz

Offsite storage is non-negotiable. Sync encrypted backups to another server or a storage bucket.

If you want a workflow that includes retention and restore testing, the discipline in tested backup routines maps cleanly to PostgreSQL too.

Quick restore drill (do this monthly):

  1. Spin up a temporary VPS or a local Docker environment.
  2. Restore the Postgres dump into a fresh database.
  3. Bring up Outline pointing at the restored DB.
  4. Log in and open a few pages and attachments.

Updates: predictable steps, short downtime

Outline upgrades are usually smooth, but only if you treat them like a routine. Don’t guess.

Keep it boring:

  • Read release notes (watch for migrations and auth changes).
  • Take a fresh backup right before updating.
  • Pull images and restart with Compose.
  • Verify login, search, and file upload after the upgrade.
cd /opt/outline
docker compose pull
docker compose up -d
docker compose logs -f --tail=200 outline

If you run several self-hosted services, controlled auto-updates can make sense for low-risk components. Watchtower is common, but it’s still a policy choice.

If you’re evaluating it, read Docker Compose auto-updates with Watchtower and decide what you’re comfortable automating.

Security and reliability checks you’ll actually do

Most incidents come from basics that didn’t get done. For an internal wiki, this short list prevents a lot of pain:

  • Firewall: allow inbound 22 (restricted), 80, 443. Block everything else.
  • SSH: disable password auth, use keys, consider changing the SSH port only if you also restrict by IP.
  • Brute-force protection: add CrowdSec or Fail2ban if the wiki is exposed to the public internet.
  • Backups: verify restore monthly.
  • Disk space: attachments grow silently. Set alerts at 70% and 85% usage.

If you want a practical hardening add-on, follow CrowdSec on Ubuntu VPS. It’s a solid fit for any login endpoint you expose.

Operational habits that keep your wiki alive

Once Outline is running, the real failure mode is human: stale docs that nobody trusts.

Two habits keep a wiki useful:

  • Write the runbook during the incident. Don’t leave it for “later.” Later rarely shows up.
  • Put owners on pages. Every critical doc should have a named maintainer and a “last reviewed” date.

If you host client sites and production services, consider keeping internal tools on a separate VPS. It shrinks the blast radius and makes capacity planning easier.

If the wiki grows, upgrading the VPS—or splitting the database and app—is a straightforward move.

Summary: a clean internal knowledge base you control

Outline sits in the practical middle. It feels like a modern hosted wiki, but you can run it on your own infrastructure and keep the rules yours.

Deploy with Docker Compose, put Nginx in front with Let’s Encrypt, and treat backups like part of the product. Do that, and documentation stops being “nice to have.” It becomes reliable.

If you’re moving internal tools off SaaS, starting with the wiki is usually an easy win. Low risk, immediate value, and simple math on costs.

If you want a stable place to run internal tools like Outline, a HostMyCode VPS gives you predictable resources and full control over Docker, storage, and networking. If you’d rather not spend your time on patching and routine maintenance, managed VPS hosting is a practical upgrade for keeping the wiki fast and secure.

FAQ: self-hosting Outline for teams

Do I need object storage for Outline uploads?

Yes, it’s strongly recommended. S3-compatible storage keeps your app container stateless and makes backups and restores cleaner. You can start with local volumes, but plan the move early if you expect a lot of attachments.

Can I run Outline on the same VPS as my websites?

Yes, but keep an eye on RAM and disk. A busy WordPress stack plus Postgres plus a wiki will compete for memory under load. If you host client sites, putting the wiki on its own VPS reduces risk.

What’s the minimum VPS size that won’t feel slow?

A 2 vCPU / 4 GB RAM VPS is a solid baseline for a small team. If you add heavier auth integrations or store lots of attachments locally, add RAM and disk first.

How do I update Outline without surprises?

Pin database image versions, read Outline release notes, take a fresh database backup, then docker compose pull and docker compose up -d. After the restart, verify login, search, and uploads.

Should an internal wiki be public on the internet?

Prefer private access (VPN, IP allowlist, or a protected admin network). If it must be public, enforce HTTPS, use SSO/MFA where possible, and add brute-force protection.