Sign inSign up

baip/mediawiki

By baip

Updated over 4 years ago

MediaWiki on Docker with Wiki family support (https://github.com/baip/openshift-mediawiki)

Image
0

843

baip/mediawiki repository overview

Source https://github.com/baip/openshift-mediawiki

Arm64 https://hub.docker.com/r/baip/mediawiki-arm64

Docker images and OpenShift QuickStart for MediaWiki. It supports multi-site Wiki family.

  • To host another wiki called ABC (accessible at https://your.wiki.com/abc/), you need:
  1. ABC_SITE_NAME and ABC_ADMIN_EMAIL (required)
  2. ABC_GOOGLE_ANALYTICS_ACCOUNT (optional): if you use Google Analytics
  3. ABC_GOOGLE_LOGIN_SECRET and ABC_GOOGLE_LOGIN_APP_ID (optional): follow the instructions for Extension:GoogleLogin to obtain the credentials for setting up login with Google.
  • PreInstalled Plugins:

Cite, CiteThisPage, ConfirmAccount, Gadgets, GoogleAnalytics, GoogleLogin, ImageMap, InputBox, Interwiki, LocalisationUpdate, MarkdownExtraParser, MobileFrontend, Nuke, ParserFunctions, PdfHandler, Poem, Renameuser, SpamBlacklist, Scribunto, SyntaxHighlight_GeSHi, TitleBlacklist, UserMerge, WikiEditor, Google Analytics.

  • Default Admin Username: admin, Default Password: Admin123Acct.

Docker

  1. Create the following two files to provide database credentials and wiki settings:
  • db.env

    MYSQL_DATABASE=mediawiki
    MYSQL_ROOT_PASSWORD=CHANGE_ME_ROOT_PASSWORD
    
  • app.env

    OPENSHIFT_MYSQL_DB_HOST=mysql
    OPENSHIFT_MYSQL_DB_PORT=3306
    OPENSHIFT_APP_NAME=mediawiki
    OPENSHIFT_MYSQL_DB_USERNAME=root
    OPENSHIFT_MYSQL_DB_PASSWORD=CHANGE_ME_ROOT_PASSWORD
    SMTP_SERVER=smtp.CHANGE_ME.com
    SMTP_PORT=587
    SMTP_DOMAIN=CHANGE_ME.COM
    SMTP_USER_NAME=SOME_USER@CHANGE_ME.COM
    SMTP_PASSWORD=CHANGE_ME_SMTP_PASSWORD
    META_SITE_NAME=CHANGE_ME_SITE_NAME
    META_ADMIN_EMAIL=ADMIN@CHANGE_ME.COM
    
  1. Add the following lines to app.env,
  • if you use Google Analytics:

    META_GOOGLE_ANALYTICS_ACCOUNT=UA-1234567-8
    
  • if you want Login via Google:

    META_GOOGLE_LOGIN_SECRET=abcdefg
    META_GOOGLE_LOGIN_APP_ID=987654321-hijklmnop.apps.googleusercontent.com
    META_GOOGLE_LOGIN_DOMAIN=YOUR_APP_DOMAIN_IF_NEEDED
    
  1. Run docker-compose up -d.

Build

Build a multi-architecture image: docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 --rm=true --tag=USER/mediawiki:latest --push .

Tag summary

Content type

Image

Digest

Size

265.6 MB

Last updated

over 4 years ago

docker pull baip/mediawiki