Deploy MediaWiki

Self-hosted wiki — the software that runs Wikipedia

Deploy MediaWiki

Just deployed

/data

Deploy and Host

Deploy on Railway

MediaWiki main page

MediaWiki is the open-source wiki software that runs Wikipedia — collaborative pages with full revision history, file uploads, and a complete API. This template ships MediaWiki 1.43.13 (LTS) pinned by digest as a single service with its database built in (SQLite on a persistent volume), so the deploy form has one field: the admin password.

About Hosting

One click deploys a single MediaWiki service with a persistent volume at /data. The SQLite database, uploads, and settings all live on the volume — no separate database service to wire up. The first boot runs a silent CLI install, so the deploy lands on a working wiki with no wizard to click through. Railway's injected PORT is honored on every boot, and the public URL is derived from the live domain.

What gets deployed:

  • mediawiki — MediaWiki 1.43.13 (PHP 8.3 + Apache) with SQLite, volume /data
  • Admin account — username Admin with the password from the deploy form; log in at Special:UserLogin

Why Deploy

  • Zero-fuss start: no database service, no wizard — the first boot installs itself and the admin account is ready.
  • The real wiki: the same software as Wikipedia — pages, revisions, talk pages, categories, templates, uploads, and the action API.
  • Always-on by design: the wiki runs continuously, so your team always has a live knowledge base.

Common Use Cases

  • Run a team knowledge base or internal docs wiki with full revision history.
  • Replace a shared docs folder with a wiki anyone on the team can edit and link.
  • Keep a personal notebook wiki with categories, templates, and file uploads.
  • Host a public community wiki with account creation open to readers.

Dependencies for MediaWiki Hosting

  • The mediawiki service with a volume at /data, created by the template. A custom domain is optional.

Deployment Dependencies

SettingValue
RuntimeMediaWiki 1.43.13 (PHP 8.3 + Apache) with SQLite
PlanHobby; one service
PortRailway's injected PORT, honored on every boot (default 8080)
PersistenceOne Railway volume at /data
Healthcheck/health (static file, unauthenticated 200 when Apache is up)
VariableValueNotes
MW_ADMIN_PASSWORD(generated)Deploy-form field; password for the Admin account created at first boot
MW_WIKI_NAMEMy WikiBaked in the image; wiki name ($wgSitename)
MW_ADMIN_USERAdminBaked in the image; admin username
MW_DB_NAMEmediawikiBaked in the image; SQLite file /data/mediawiki.sqlite
PORT(injected by Railway)Apache is remapped to it on every boot
RAILWAY_PUBLIC_DOMAIN(derived at boot)$wgServer is re-derived from it on every boot

Baked internals: MW_WIKI_NAME=My Wiki, MW_ADMIN_USER=Admin, MW_DB_NAME=mediawiki; SQLite at /data, uploads at /data/images, LocalSettings.php on the volume.


Template Content

More templates in this category

View Template
Libredesk - Complete Setup
Complete self-hosted omnichannel customer support desk.

codestorm
2
View Template
Paperless-ngx
Paperless-ngx — document management with OCR and full-text search

INAPP
1
View Template
Instatic CMS - Postgres
Design, build and manage powerful static sites from state-of-the-art CMS

Instatic
169