Run a MediaWiki server with Webmin and Adminer on Linux/amd64 using Docker Compose. Connect to the TurnKey Hub during setup to use Hub backup and other services.
Download the Compose file and start the server:
mkdir -p turnkey-mediawiki && cd turnkey-mediawiki
curl -fL -o compose.mediawiki.yaml https://github.com/turnkeylinux/buildtasks/releases/download/library-19.0.3-hotfix/turnkey-mediawiki-19.0.3-compose.yaml
docker compose -f compose.mediawiki.yaml pull
docker compose -f compose.mediawiki.yaml up -d
docker compose -f compose.mediawiki.yaml exec mediawiki turnkey console
In the console, connect to the Hub or choose Skip, then set the server root,
database administration and MediaWiki administrator passwords. When prompted
for the MediaWiki address, enter https://localhost:19443 for this example.
Closing the console leaves the server running.
| Interface | Local address | Sign-in |
|---|---|---|
| MediaWiki | localhost:19443 | Admin, MediaWiki password |
| Webmin | localhost:19321 | root, server password |
| Adminer | localhost:19322 | adminer, database administration password |
| SSH/SFTP | localhost, port 19022 | root, server password |
The initial HTTPS certificate is self-signed, so your browser will ask you to
accept it. The example binds ports to localhost. For remote access, change the
host bindings and displayed TKL_HTTP_URL, TKL_HTTPS_URL, TKL_WEBMIN_URL,
TKL_ADMINER_URL, TKL_SSH_HOST and TKL_SSH_PORT values in the Compose file
to match your deployment. Enter the same HTTPS origin as the MediaWiki address
during setup.
The Compose project retains its complete volume set across recreation. If another service uses these ports, stop it or choose different host ports in the Compose file before starting MediaWiki.
Security updates install automatically from the configured security
repositories; services restart when packages change. If an update fails, check
/var/lib/turnkey-docker/security-updates.json and /var/log/cron-apt/log.
In the Hub, connect an AWS account and enable backup for this server. Initialize backup on the Hub-connected server, then create a backup:
docker compose -f compose.mediawiki.yaml exec mediawiki tklbam-init
docker compose -f compose.mediawiki.yaml exec mediawiki tklbam-backup
docker compose -f compose.mediawiki.yaml exec mediawiki tklbam-status
Keep the original image and complete volume set together. To move to a
different image on the same host, copy the Compose file and edit
compose.mediawiki-new.yaml to select the new image. Keep the same published
ports and MediaWiki HTTPS address so links in the restored wiki continue to use
the same origin. Stop the original container to release the ports, then start a
separate project and restore the backup:
cp compose.mediawiki.yaml compose.mediawiki-new.yaml
# Edit compose.mediawiki-new.yaml to select the new image.
docker compose -f compose.mediawiki.yaml stop mediawiki
docker compose -p turnkey-mediawiki-new -f compose.mediawiki-new.yaml up -d
docker compose -p turnkey-mediawiki-new -f compose.mediawiki-new.yaml exec mediawiki turnkey console
docker compose -p turnkey-mediawiki-new -f compose.mediawiki-new.yaml exec mediawiki tklbam-init
docker compose -p turnkey-mediawiki-new -f compose.mediawiki-new.yaml exec mediawiki tklbam-restore BACKUP_ID
Verify the restored wiki pages and files before retiring the original server. The TKLBAM guide covers backup and restore options.
Content type
Image
Digest
Size
292.7 MB
Last updated
almost 8 years ago
docker pull turnkeylinux/mediawiki