Create a robust collaboration and documentation platform using the same open-source software that powers Wikipedia. This highly customizable wiki system helps you collect, organize, and share knowledge effectively across teams, communities, or entire organizations. Whether you are building a public knowledge base or an internal company wiki, it provides the reliability and flexibility needed to manage large amounts of information.
Key benefits include:
services:
mediawiki:
image: mediawiki:stable
restart: unless-stopped
ports:
- 8080:80
volumes:
- ./mediawiki-images:/var/www/html/images
# After initial setup via the web wizard, download LocalSettings.php to the host directory and uncomment the line below:
# - ./LocalSettings.php:/var/www/html/LocalSettings.php
environment:
MEDIAWIKI_DB_HOST: database
MEDIAWIKI_DB_USER: ${MEDIAWIKI_DB_USER}
MEDIAWIKI_DB_PASSWORD: ${MEDIAWIKI_DB_PASSWORD}
MEDIAWIKI_DB_NAME: ${MEDIAWIKI_DB_NAME}
depends_on:
- database
database:
image: mariadb:10
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MEDIAWIKI_DB_NAME}
MYSQL_USER: ${MEDIAWIKI_DB_USER}
MYSQL_PASSWORD: ${MEDIAWIKI_DB_PASSWORD}
volumes:
- ./db-data:/var/lib/mysqlMEDIAWIKI_DB_USER=wikiuser
MEDIAWIKI_DB_PASSWORD=secure_wiki_password
MEDIAWIKI_DB_NAME=my_wiki
MYSQL_ROOT_PASSWORD=secure_root_passwordAuto-fetched about 24 hours ago
Auto-fetched about 24 hours ago