Deploy DokuWiki
Simple file-based wiki, no database, admin account set up on first boot
Just deployed
/storage
Deploy and Host DokuWiki on Railway
DokuWiki is a simple, open-source wiki that stores every page as a plain text file, so it needs no database. It has a clean editor, page revisions, access control lists, full-text search and over a thousand plugins and templates. It suits team documentation, knowledge bases and personal notes.
About Hosting DokuWiki
Hosting DokuWiki means running PHP behind a web server, keeping its pages, media, users and configuration on persistent storage, and finishing the installer before anyone else reaches it. This template builds the official dokuwiki/dokuwiki image (release 2026-07-14c, pinned by digest) from a public GitHub repository and mounts a Railway volume at /storage for all wiki data. On the first boot a small wrapper runs the installer for you: it creates the admin account from ADMIN_USER and a generated ADMIN_PASSWORD, turns on access control and closes self-registration, so install.php is never left open. Railway provides HTTPS and a health check.
Common Use Cases
- Internal documentation and runbooks for a team or project
- A public knowledge base or FAQ that only signed-in users can edit
- A personal wiki for notes, recipes or research
Dependencies for DokuWiki Hosting
- A Railway volume mounted at
/storage(pages, media, users, configuration and installed plugins) - No database: DokuWiki stores everything as files
Deployment Dependencies
- DokuWiki: https://www.dokuwiki.org/
- Official Docker image: https://github.com/dokuwiki/docker
- Release notes: https://www.dokuwiki.org/changes
- Template source: https://github.com/aalfath/dokuwiki-railway-template
Implementation Details
After the deploy, open the service's Variables tab to read ADMIN_PASSWORD, then sign in at your Railway domain as admin. Both values are only used on the first boot: change the password later under Update Profile, and manage users under Admin, User Manager.
By default everyone can read and only signed-in users can edit. To change that before the first deploy, add WIKI_ACL_POLICY (0 open, 1 public, 2 closed) or WIKI_ALLOW_REGISTER=1. WIKI_TITLE, ADMIN_EMAIL, WIKI_LANG and PHP_UPLOADLIMIT (default 128M) work the same way. For email (password resets, notifications), install the SMTP plugin from the Extension Manager. The template builds from its GitHub repository, so Railway offers you an update when the pinned DokuWiki version is bumped; read the repository's CHANGELOG before applying it.
Why Deploy DokuWiki on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying DokuWiki on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content