---
title: "Deploy mediawiki"
description: "Deploy and Host MediaWiki on Railway"
category: "CMS"
url: https://railway.com/deploy/mediawiki
---

# Deploy mediawiki

Deploy and Host MediaWiki on Railway

**[Deploy mediawiki on Railway](https://railway.com/template/mediawiki)**

- **Creator:** Vedmaka's Projects
- **Category:** CMS
- **Total deploys:** 34

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8.0
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G  --default-authentication-plugin=caching_sha2_password --log-bin --binlog-expire-logs-seconds=172800`

### wikiteq/taqasta:latest

- **Image:** ghcr.io/wikiteq/taqasta:latest
- **Start command:** `bash -c "rm -f /etc/apache2/sites-enabled/000-default.conf && rm -f /etc/apache2/sites-available/000-default.conf && rm -rf /var/www/html && /run-apache.sh"`
- **Health check:** /w/api.php
- **Public domain:** Yes

## Documentation

> This template runs a minimal Taqasta setup. For production setup, custom configuration, and expert support, see [WikiTeq](https://wikiteq.com) - enterprise MediaWiki and knowledge management since 2009.

# Deploy and Host MediaWiki on Railway

The MediaWiki software is used by tens of thousands of websites and thousands of companies and organisations. It powers Wikipedia and also this website. MediaWiki helps you collect and organise knowledge and make it available to people. It's powerful, multilingual, free and open, extensible, customisable, reliable.

***Note:*** Deploying on a free plan may take up to 10 minutes to download and run all the containers

## About Hosting MediaWiki

This template runs [MediaWiki](https://www.mediawiki.org/wiki/MediaWiki) version `1.43` and can be deployed in 1-click with all the defaults. In that case you should use the following default Admin user credentials to login into your wiki:

- Username: `Admin`
- Password: `Passsw0rd!`

And once logged in - change your password on the Preferences page.

If you would like to change the credentials before  deploying you have to update the following variables:

- `MW_ADMIN_USER` - the username of the wiki admin user to be created, for example `Admin`
- `MW_ADMIN_PASS` - the password for the admin user. The password must be 10 chars length min. and contain a number and a special character, i.e. `Passsw0rd!`

In  addition, the wiki name (aka site-name) can be  controlled by the following variable:

- `MW_SITE_NAME` - the name of your wiki, can be any string, i.e. `My Wiki`

## Common Use Cases

- Knowledge Base
- Collaborative Wiki portal
- Blog
- Semantic Database

## Dependencies for mediawiki Hosting

- Redis
- MySQL

### Deployment Dependencies

The template uses supercharged `Taqasta` image to run MediaWiki (https://github.com/WikiTeq/Taqasta). The image runs optimised and fine-tuned official version of MediaWiki, bundles over 130 free extensions and extra skins that can be easily enabled and configured using environment variables

The reason why `Taqasta` is used vs the regular MediaWiki docker image is not just because it's a supercharged version, but also because you can not install a regular MediaWiki docker image on Railways due  to specific way of settings handling of MediaWiki (the regular setup requires you to download & add a generated settings file to a volume that you can not do on Railway)

`Taqasta` on the other hand provides automatic non-interactive setup behind  the scenes removing the need  to go through the initial MediaWiki setup wizard and thus not requiring one to upload any settings files to the volumes

This streamlined 1-click install process allows for quick deployments and smooth wiki admin experience compared to the regular images, which is especially important for Railway like platforms

Extensions enabled on this template:

- ImageMap
- InputBox
- MathJax
- Nuke
- ParserFunctions
- ReplaceText
- Renameuser
- Scribunto
- SyntaxHighlight_GeSHi
- Widgets
- WikiEditor
- CodeEditor
- VisualEditor
- Elastica
- CirrusSearch
- Echo
- Cite
- ExternalData
- SemanticMediaWiki

You can enable more by updating the `MW_LOAD_EXTENSIONS` variable

The full list of extensions included can be seen at https://github.com/WikiTeq/Taqasta/blob/master/_sources/canasta/DockerSettings.php#L38

Skins enabled on this  template:

- Vector
- Chameleon

You can enable more by updating the `MW_LOAD_SKINS` variable and set the default skin using `MW_DEFAULT_SKIN` variable

The full list of skins included can be seen at https://github.com/WikiTeq/Taqasta/blob/master/_sources/canasta/DockerSettings.php#L26

## Additional capabilities

The template does not include Elasticsearch configuration, but the MediaWiki instance supports it out of the box. Most of the wikis should be fine without replacing the default search engine with Elasticsearch. However, for the ones looking for a better full-text search experience ElasticSearch can be added to the project using the following simple steps:

1. Create new ElasticSearch service deployment using `elasticsearch:7.10.2` docker image tag
2. Add the following environment variables to  the  ElasticSearch instance

```
discovery.type=single-node
bootstrap.memory_lock=true
ES_JAVA_OPTS=-Xms128m -Xmx128m
```

3. On the MediaWiki service set the following variables:

```
MW_SEARCH_TYPE=CirrusSearch
```

## Why Deploy mediawiki 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 mediawiki 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

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/mediawiki
