---
title: "Deploy GROWI"
description: "Markdown team wiki with page history, comments and live co-editing"
category: "Other"
url: https://railway.com/deploy/growi-1
---

# Deploy GROWI

Markdown team wiki with page history, comments and live co-editing

**[Deploy GROWI on Railway](https://railway.com/template/growi-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/growi-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### MongoDB https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/mongodb.png

- **Image:** mongo:8.0.38@sha256:479e85ced54ffb8a40dade1dcde2da2a9ae858515b9415e9cc54bfb8f0575d01
- **Start command:** `/bin/sh -c 'if [ -z "$MONGO_INITDB_ROOT_USERNAME" ] || [ -z "$MONGO_INITDB_ROOT_PASSWORD" ] || [ -z "$MONGO_REPLICA_KEY" ]; then echo "MongoDB credentials are empty: refusing to start" >&2; exit 1; fi; printf "%s" "$MONGO_REPLICA_KEY" > /tmp/rs.key; chmod 400 /tmp/rs.key; chown 999:999 /tmp/rs.key; (until mongosh --quiet -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" --authenticationDatabase admin --eval "try { rs.status().ok } catch (e) { rs.initiate({ _id: \"rs0\", members: [{ _id: 0, host: \"localhost:27017\" }] }).ok }" 2>/dev/null | grep -qx 1; do sleep 3; done; echo "replica set rs0 ready") & exec docker-entrypoint.sh mongod --replSet rs0 --keyFile /tmp/rs.key --ipv6 --bind_ip_all --wiredTigerCacheSizeGB 0.25'`

### GROWI https://raw.githubusercontent.com/growilabs/growi/v8.0.11/apps/app/public/images/icons/favicon/apple-icon.png

- **Source:** https://github.com/aalfath/growi-railway-template
- **Health check:** /_api/v3/healthcheck
- **Public domain:** Yes

## Documentation

# Deploy and Host GROWI on Railway

GROWI is an open-source team wiki and knowledge base. Pages are written in Markdown with a live preview and kept in a page tree, with full page history, comments, tags, several people editing one page at once, and per-page or per-group access control. It is MIT-licensed and developed by GROWI, Inc.

## About Hosting GROWI

This template runs GROWI 8.0.11 (official image, pinned by version and digest) built from a public GitHub repo, plus MongoDB 8.0 as a single-node replica set on a volume. Pages, revisions, users, sessions and uploaded files all live in MongoDB, so one volume holds everything. On the first boot the admin account is created from generated variables on a private port and self-registration is closed before the public URL opens, so no stranger can claim your wiki. After deploy, open the URL and sign in as `admin` with `AUTO_INSTALL_ADMIN_PASSWORD` from the GROWI service's variables. Updates arrive as Railway update notices when the repo's version changes; GROWI's migrations run on start.

## Common Use Cases

* Internal documentation, runbooks and how-to guides for a team
* Onboarding handbooks and meeting notes edited together in real time
* A self-hosted Confluence-style knowledge base with LDAP, SAML or OIDC sign-in

## Dependencies for GROWI Hosting

* GROWI service (Node.js app, public HTTPS domain, health check on `/_api/v3/healthcheck`)
* MongoDB 8.0 service (single-node replica set, private network only, volume at `/data/db`)

### Deployment Dependencies

* GROWI source and release notes: https://github.com/growilabs/growi/releases/tag/v8.0.11
* GROWI documentation: https://docs.growi.org/en/
* Environment variables reference: https://docs.growi.org/en/admin-guide/admin-cookbook/env-vars.html
* Template repo (Dockerfile, start script, changelog): https://github.com/aalfath/growi-railway-template

### Implementation Details

Services in this template:

* **GROWI**: the wiki (web UI and API). Keeps no state of its own; attachments are stored in MongoDB (GridFS). If it stops unexpectedly, the container exits non-zero and Railway restarts it.
* **MongoDB**: the database for pages, history, users, settings, sessions and files. GROWI 8 needs a replica set for change streams; this one is initialised automatically.

Nothing has to be typed in at deploy time: the database password, replica-set key, password salt, session secret and admin password are all generated. Never change `PASSWORD_SEED` after the first deploy, or nobody can sign in.

After you sign in, change the admin password, then invite people under Admin → User management, or reopen sign-up under Admin → Security → ID/Pass. Mail (invitations, password resets) and single sign-on are set up in the Admin pages.

Full-text search needs Elasticsearch (about 1 GB of RAM and a second volume), so it is left out to fit Railway's Free plan; the search box returns no results until you add it and set `ELASTICSEARCH_URI` on the GROWI service (steps in the repo README). The PDF export converter and Redis are optional upstream and also left out. Upstream's anonymous telemetry is turned off.

Tested with each service at 0.5 GB RAM and 1 vCPU: GROWI uses about 230 to 290 MB and MongoDB stays under 400 MB.

## Why Deploy GROWI 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 GROWI 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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Wiki-Go](https://railway.com/deploy/wiki-go) — Flat-file Markdown wiki in Go: no database, generated admin login

Open this page in a browser: https://railway.com/deploy/growi-1
