Skip to content

Self-host Wiki.js

updated Sep 2026prices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →

A Node.js wiki with a modern admin area, Markdown and visual (WYSIWYG) editors, and a wide set of pluggable modules — local, social, and enterprise auth (LDAP, SAML, OIDC, CAS) with optional 2FA are all part of the free AGPL-3.0 build. It brings its own web server but no database: PostgreSQL is the recommended engine, and the other supported engines are slated to be dropped in the next major version.

Key facts

CategoryWiki & docs
LicenseAGPL-3.0
StackNode.js, Vue, PostgreSQL
Min RAM1024 MB
Official imageyes
Measured idle RAM94 MB
Difficulty
Our recommendation

Pick Wiki.js when you want a Markdown-first wiki with a proper admin area and enterprise login — LDAP, SAML, OIDC, CAS and 2FA are all modules in the free AGPL-3.0 build, not an upsell. It ships as an official image and runs on the documented 1 GB floor, but it brings no database of its own: plan on a PostgreSQL container beside it and a dedicated subdomain in front of it.

Follow the Wiki.js deploy guide →

What you need

  • Any VPS with at least 1024 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + US
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install

Run these commands on your server:

# Wiki.js — official image (ghcr.io/requarks/wiki:2) with PostgreSQL, from the docs' compose example
mkdir -p wikijs && cd wikijs
cat > docker-compose.yml <<'EOF'
services:
  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: wiki
      POSTGRES_PASSWORD: change-me
      POSTGRES_USER: wikijs
    restart: unless-stopped
    volumes: ["db-data:/var/lib/postgresql/data"]
  wiki:
    image: ghcr.io/requarks/wiki:2
    depends_on: [db]
    init: true
    environment:
      DB_TYPE: postgres
      DB_HOST: db
      DB_PORT: 5432
      DB_USER: wikijs
      DB_PASS: change-me
      DB_NAME: wiki
    restart: unless-stopped
    ports: ["80:3000"]
volumes:
  db-data:
EOF
docker compose up -d   #  →  http://SERVER_IP  (the first visit runs the setup wizard: admin account + site URL)

What you take on

Wiki.js is easy to run, but three things in its own documentation are worth reading before you commit:

non-negotiableIt has no bundled database engine. PostgreSQL is the recommended one, and the docs say MySQL, MariaDB, MS SQL Server and SQLite will not be supported in the next major version — start on Postgres so the eventual migration is not yours to do.
non-negotiableIt needs its own domain or sub-domain (e.g. wiki.example.com); the docs state it cannot be mapped to a subfolder.
non-negotiableThe 2.x line is the current stable while a 3.0 rewrite is in beta. The requirements page promises an export/import tool for the move, so treat the upgrade as a planned migration rather than an image-tag bump.
non-negotiableThe documented floor is 1 GB of RAM on Linux even though the process itself idles far lower — page rendering and indexing come in bursts.

An alternative to

Head-to-head

More in Wiki & docs

Wiki & docs

BookStack

A simple, genuinely open-source documentation wiki organized into shelves, books, and pages — easy to run and easy for non-technical teams to use.
PHPLaravel
easyRead guide →
Wiki & docs

Docmost

A collaborative wiki and documentation tool that positions itself as an open-source alternative to Confluence and Notion: real-time co-editing, spaces, groups and permissions, comments, page history, search, attachments, and built-in Draw.io, Excalidraw, and Mermaid diagrams. The core is AGPL-3.0 and runs as one Node.js container beside PostgreSQL and Redis; Bases (databases), SSO, AI features, audit logs, and SCIM are licensed Business/Enterprise features.
TypeScriptNode.jsPostgreSQLRedis
easyRead guide →
Wiki & docs

DokuWiki

A long-lived PHP wiki engine that stores pages as plain text files — no database to run, back up, or migrate. The project's own Docker image (a PHP + Apache container with a single storage volume) is the whole install; a web installer configures the wiki on the first visit, and the plugin and template ecosystem is where most of its features live.
PHPApache
easyRead guide →
Wiki & docs

MediaWiki

The PHP wiki engine behind Wikipedia, licensed GPL-2.0-or-later and built for large public knowledge bases: wikitext markup, categories, templates, full revision history, and a vast extension ecosystem. It runs on MariaDB/MySQL (recommended), PostgreSQL, or SQLite, and its own documentation recommends no Docker image for third-party production use — the Docker Hub image is community-maintained and the install still ends with you saving a generated LocalSettings.php.
PHPMariaDB
moderateRead guide →

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.