{"id":15974537,"url":"https://github.com/malberts/mediawiki-docker-compose","last_synced_at":"2026-04-16T15:03:25.751Z","repository":{"id":74270692,"uuid":"323379917","full_name":"malberts/mediawiki-docker-compose","owner":"malberts","description":"Example configurations for Mediawiki and Docker Compose","archived":false,"fork":false,"pushed_at":"2020-12-22T09:41:09.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T04:44:19.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/malberts.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}},"created_at":"2020-12-21T15:45:35.000Z","updated_at":"2020-12-22T09:41:11.000Z","dependencies_parsed_at":"2023-07-12T05:01:01.207Z","dependency_job_id":null,"html_url":"https://github.com/malberts/mediawiki-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malberts/mediawiki-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malberts%2Fmediawiki-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malberts%2Fmediawiki-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malberts%2Fmediawiki-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malberts%2Fmediawiki-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malberts","download_url":"https://codeload.github.com/malberts/mediawiki-docker-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malberts%2Fmediawiki-docker-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27282315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-07T21:42:36.020Z","updated_at":"2025-11-27T15:03:40.941Z","avatar_url":"https://github.com/malberts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example configurations for Mediawiki and Docker Compose\n\nAll examples are based on the (unofficial) [Mediawiki 1.35.x](https://hub.docker.com/_/mediawiki) Docker Compose example.\n\nFor Apache and Nginx.\n\nAdditional configurations:\n\n* [VisualEditor/Parsoid URL](#visualeditorparsoid-url)\n* [Short URL](#short-url)\n* [Additional Composer dependencies](#additional-dependencies)\n\n\n## VisualEditor/Parsoid URL\nIf you use the default Docker Compose example without any additional changes, then you will see the following error when saving a page using VisualEditor:\n\n    Something went wrong\n\n    Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server\n\n![Parsoid Error](parsoid_error.png)\n\nThe solution is to add the following to your `LocalSettings.php`:\n\n    $wgVirtualRestConfig['modules']['parsoid'] = [\n        'url' =\u003e 'http://mediawiki:80/rest.php',\n    ];\n    wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );\n\nThe `url` value must be changed acording to the `docker-compose.yml` service name:\n\n| Server                              | Service     | url                            |\n| :---------------------------------- | :---------- | :----------------------------- |\n| [Apache](apache/docker-compose.yml) | `mediawiki` | `http://mediawiki:80/rest.php` |\n| [Nginx](nginx/docker-compose.yml)   | `nginx`     | `http://nginx:80/rest.php`     |\n\nThe reason for this error is within the `mediawiki` container the implicit default value will be \"`http://localhost:8080/rest.php`\".\nHowever, that default URL does not resolve from inside that container, so instead the URL must be overriden to refer to the hostname and port visible to that container.\n\nAs per the [VisualEditor/Parsoid documentation](https://www.mediawiki.org/wiki/Extension:VisualEditor#Linking_with_Parsoid) the extension has to be loaded explicitly because the configuration was overriden.\n\n\n## Short URL\nAdd `$wgArticlePath` to `LocalSettings.php`.\n\nThe default URL `http://localhost:8080/index.php/Main_Page` will be rewritten to:\n\n| `$wgArticlePath` | Rewrite                                |\n| :--------------- | :------------------------------------- |\n| `/$1`            | `http://localhost:8080/Main_Page`      |\n| `/wiki/$1`       | `http://localhost:8080/wiki/Main_Page` |\n\n\n## Additional Composer dependencies\n\nAdditional dependencies can be installed using a custom image and Composer 1.\n\nCustom image specifying dependencies: [Dockerfile](apache/mediawiki/Dockerfile)\n\nVersions: [composer.local.json](apache/composer.local.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalberts%2Fmediawiki-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalberts%2Fmediawiki-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalberts%2Fmediawiki-docker-compose/lists"}