{"id":39876996,"url":"https://github.com/emfcamp/docker-mediawiki","last_synced_at":"2026-01-18T14:25:43.382Z","repository":{"id":38455649,"uuid":"117962741","full_name":"emfcamp/docker-mediawiki","owner":"emfcamp","description":"EMF docker container for Mediawiki","archived":false,"fork":false,"pushed_at":"2025-09-15T19:09:52.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-15T21:11:26.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emfcamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-18T09:40:08.000Z","updated_at":"2025-09-15T19:08:31.000Z","dependencies_parsed_at":"2024-03-09T12:50:25.324Z","dependency_job_id":null,"html_url":"https://github.com/emfcamp/docker-mediawiki","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/emfcamp/docker-mediawiki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emfcamp%2Fdocker-mediawiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emfcamp%2Fdocker-mediawiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emfcamp%2Fdocker-mediawiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emfcamp%2Fdocker-mediawiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emfcamp","download_url":"https://codeload.github.com/emfcamp/docker-mediawiki/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emfcamp%2Fdocker-mediawiki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T14:25:43.320Z","updated_at":"2026-01-18T14:25:43.375Z","avatar_url":"https://github.com/emfcamp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mediawiki in a docker container for EMF. This container bakes in the needed set\nof Mediawiki plugins using composer.\n\n## Development\n\n* `docker compose up`\n* Visit http://localhost:8087 and complete the installation wizard\n\nThe database credentials are: host `db`, db `wiki`, username `wiki`, password `wiki`. Once\nyou've downloaded the config file, put it in `./data/config`, and add the following at the end:\n\n    enableSemantics( 'localhost:8087' );\n\n### Deployment\n\nPush a tag for the version of mediawiki you're publishing, e.g. for mediawiki 1.39.6, the tag should be\n`v1.39.6-1`.\n\nPublished to ghcr.io/emfcamp/docker-mediawiki.\n\n## Updating\n\nIf a mediawiki DB needs an upgrade:\n\n    docker compose exec mediawiki php /var/www/mediawiki/w/maintenance/update.php\n\nAnd if you're using SMW, you may need to also run extra commands, e.g.:\n\n    docker compose exec mediawiki php /var/www/mediawiki/w/extensions/SemanticMediaWiki/maintenance/updateEntityCountMap.php\n\nNote that if the wiki is in read-only mode (`$wgReadOnly`), you'll have to disable that, or you'll\nget a cryptic error.\n\nTo troubleshoot fatal errors, set `$wgShowExceptionDetails = true`.\n\n## Config\n### Short URLs\n\nFor short URLs, the appropriate config is:\n\n```\n$wgScriptPath = \"/w\";\n$wgUsePathInfo = true;\n```\n\nIf you're exposing the wiki under a subdirectory, set `URL_PREFIX` in `docker-compose.yml`, e.g.:\n\n```\n    environment:\n      URL_PREFIX: /2018\n```\n\nAnd update the config to:\n\n```\n$wgScriptPath = \"/2018/w\";\n$wgArticlePath = \"/2018/wiki/$1\";\n$wgUsePathInfo = true;\n```\n\n### Email\n\nTo send emails, you need to set `$wgSMTP`:\n\n```\n$wgSMTP = array(\n 'host'     =\u003e \"smtp.host\",\n 'IDHost'   =\u003e \"external.domain\",\n 'port'     =\u003e 25,\n 'auth'     =\u003e false,\n);\n```\n\nTo use the host machine, set `host` to either its FQDN or the default gateway of\nthe container. `IDHost` should match the hostname used in `$wgServer`.\n\n## Upgrading the image\n\nWe generally stick to the latest LTS. Follow the MediaWiki [support matrix](https://www.mediawiki.org/wiki/Version_lifecycle/en).\n\nCheck the history of the MediaWiki Dockerfile, [e.g.](https://github.com/wikimedia/mediawiki-docker/blob/main/2.39/fpm/Dockerfile), and be aware that our Dockerfile is substantially different.\n\nFor `composer.local.json`, check the latest package versions and requirements, [e.g.](https://packagist.org/packages/mediawiki/sub-page-list). Not all default extension dependencies [are included](https://phabricator.wikimedia.org/T306721). Also check [SMW's support matrix](https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/COMPATIBILITY.md), but be aware that it's not well tested. If in doubt, check an extension's MediaWiki page, [e.g.](https://www.mediawiki.org/wiki/Extension:SubPageList).\n\nFor Postgres, take the latest stable.\n\nFor deployment, regenerate the out-of-the-box MediaWiki LocalSettings.php and compare it to the previous version's in `config-history`. Apply changes manually to the live configs.\n\nTo quickly reinstall a test instance, use the following commands:\n\n```\n$ docker compose down -v\n$ rm -f data/config/LocalSettings.php\n$ docker compose up --build -d\n$ server=http://localhost:8087\n$ pass=$(dd if=/dev/random bs=3 count=3 2\u003e/dev/null|base64)\n$ docker compose exec mediawiki php /var/www/mediawiki/w/maintenance/install.php --dbtype postgres --dbserver db --dbname wiki --dbuser wiki --dbpass wiki --pass $pass --server $server --scriptpath /w --lang en-gb --with-extensions Test Admin\n$ docker compose exec mediawiki php /var/www/mediawiki/w/maintenance/update.php --quick\n$ docker compose exec mediawiki bash -c \"echo \\\"enableSemantics( 'localhost:8087' );\\\" \u003e\u003e /config/LocalSettings.php\"\n$ echo \"Now log into $server/ as user Admin with password $pass\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femfcamp%2Fdocker-mediawiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femfcamp%2Fdocker-mediawiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femfcamp%2Fdocker-mediawiki/lists"}