{"id":21433709,"url":"https://github.com/femiwiki/docker-mediawiki","last_synced_at":"2025-08-21T06:30:59.171Z","repository":{"id":37800691,"uuid":"71083166","full_name":"femiwiki/docker-mediawiki","owner":"femiwiki","description":":whale: Dockerized Femiwiki's mediawiki server","archived":false,"fork":false,"pushed_at":"2024-12-01T14:28:45.000Z","size":1851,"stargazers_count":33,"open_issues_count":32,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-06T04:51:33.499Z","etag":null,"topics":["docker-compose","docker-image","server","wiki"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/femiwiki.png","metadata":{"funding":{"patreon":"femiwiki"},"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":"2016-10-16T23:16:08.000Z","updated_at":"2024-11-02T00:14:18.000Z","dependencies_parsed_at":"2024-03-01T06:38:48.130Z","dependency_job_id":"c0039b4f-bb15-4c6f-8698-911c5be69159","html_url":"https://github.com/femiwiki/docker-mediawiki","commit_stats":{"total_commits":1276,"total_committers":17,"mean_commits":75.05882352941177,"dds":0.3706896551724138,"last_synced_commit":"c39707ac468319609af106751ccb0c199d5244ad"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femiwiki%2Fdocker-mediawiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femiwiki%2Fdocker-mediawiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femiwiki%2Fdocker-mediawiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femiwiki%2Fdocker-mediawiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/femiwiki","download_url":"https://codeload.github.com/femiwiki/docker-mediawiki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494921,"owners_count":18235046,"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","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":["docker-compose","docker-image","server","wiki"],"created_at":"2024-11-22T23:29:27.528Z","updated_at":"2024-12-19T20:08:23.198Z","avatar_url":"https://github.com/femiwiki.png","language":"PHP","funding_links":["https://patreon.com/femiwiki"],"categories":[],"sub_categories":[],"readme":"# 페미위키 미디어위키 서버 [![Container Registry]][container registry link] [![Github checks Status]][github checks link]\n\n\u003e [!IMPORTANT]  \n\u003e This docker image is specifically designed for the needs of FemiWiki, contains FemiWiki-specific configurations and includes arbitrary MediaWiki extensions. It is not recommended to use this image for general purposes. We recommend using the [Docker official image for MediaWiki](https://hub.docker.com/_/mediawiki/).\n\n한국의 페미니즘 위키인 [femiwiki.com]에 사용되는 미디어위키 도커 이미지입니다. Dockerfile, 테스트용 도커 컴포즈 파일 등 다양한 코드를 담고있습니다.\n\n## Usage of Docker Image\n\n페미위키를 위한 [PHP-FPM] 서버이며 동일한 이미지로 [Caddy] 웹 서버를 실행할 수도 있습니다. 다음 예시 Compose file를 참고해 주세요. docker-compose.yml에서 실행 가능한 개발용 전체 예시를 볼 수 있습니다.\n\n```yml\nfastcgi:\n  image: ghcr.io/femiwiki/mediawiki\nhttp:\n  image: ghcr.io/femiwiki/mediawiki\n  command: caddy run\n  ports:\n    - 80:80\n  volumes:\n    - ./path/to/Caddyfile:/srv/femiwiki.com/Caddyfile:ro\n```\n\n#### MediaWiki\n\n다음 환경 변수를 설정할 수 있습니다.\n\n- `MEDIAWIKI_SERVER`: `$wgServer`를 덮어씁니다. 기본값 `'https://femiwiki.com'`.\n- `MEDIAWIKI_DEBUG_MODE`: 설정되었을 경우 미디어위키에서 제공하는 디버그 기능들을 켜고 개발 환경에서 세팅이 어려운 확장기능들을 비활성화합니다.\n- `MEDIAWIKI_SKIP_INSTALL`: 설정되었을 경우 컨테이너 시작 시 install.php를 실행하지 않습니다. install.php는 데이터베이스가 세팅되지 않은지 검사하고 초기화하는 일과 LocalSettings.php 생성 작업을 하므로 둘 모두 이미 처리된 경우에 스킵할 수 있습니다.\n- `MEDIAWIKI_SKIP_UPDATE`: 설정되었을 경우 컨테이너 시작 시 update.php를 실행하지 않습니다. update.php 실행은 미디어위키 설치 직후 혹은 확장 기능 추가 시에만 필요합니다.\n- `MEDIAWIKI_SKIP_IMPORT_SITES`: 설정되었을 경우 컨테이너 시작 시 importSites.php를 실행하지 않습니다. 내용이 변경되지 않았다면 한 데이터베이스에 두 번 이상 실행할 필요가 없습니다.\n\n`/a`에 위치한 LocalSettings.php 파일이나 site-list.xml 파일은 테스트 목적에 따라 교체할 수 있습니다.\n\n#### Caddy\n\nCaddy를 실행할 경우에는 Caddyfile을 `/srv/femiwiki.com/Caddyfile`로 마운트하고 `caddy run`을 커맨드로 사용하여야 합니다. [Usage of Docker Image](#usage-of-docker-image)를 참고하세요. 파일 마운트의 경우 일부 텍스트 편집기로 인한 편집이 무시될 수 있음을 주의하세요. (https://github.com/moby/moby/issues/15793)\n\n```\n./caddy/Caddyfile.dev:/srv/femiwiki.com/Caddyfile:ro\n```\n\n## Usage of Docker Compose file\n\n[Docker Swarm] 혹은 [Docker Composer]을 이용해, 아래와 같이 간편하게 페미위키를 로컬에서 실행할 수\n있습니다. 데이터베이스와 memcached 등 미디어위키에 필요한 서비스들이 실행됩니다.\n\n```bash\ndocker swarm init\n\ncp development/secrets.php.example development/secrets.php\ncp dockers/mediawiki/LocalSettings.php development/\ncp dockers/femiwiki/Hotfix.php development/\n\n# In case of Docker swarm\ndocker stack deploy --prune -c docker-compose.yml mediawiki\n# If you want some tweaks\ndocker stack deploy --prune -c docker-compose.yml -c docker-compose.override.yml mediawiki\n# In case of Docker-compose\ndocker-compose -f docker-compose.yml up\n```\n\n브라우저에서 [http://127.0.0.1:8080]을 방문할 수 있습니다.\n\n## Build\n\n페미위키 개발하실 때엔 아래 커맨드들을 참고해주세요.\n\n```bash\n# 도커이미지 빌드\ndocker build -t femiwiki/mediawiki:dev .\n# 수정된 도커이미지를 실행할때엔 아래와 같이\ndocker service update --force femiwiki_fastcgi\n\n# configs/LocalSettings.php 검사\ncomposer install\ncomposer test\n# configs/LocalSettings.php 자동 교정\ncomposer fix\n```\n\n\u0026nbsp;\n\n---\n\nThe source code of _femiwiki/mediawiki_ is primarily distributed under the terms\nof the [GNU Affero General Public License v3.0] or any later version. See\n[COPYRIGHT] for details.\n\n[container registry]: https://badgen.net/badge/icon/docker?icon=docker\u0026label\n[container registry link]: https://github.com/orgs/femiwiki/packages/container/mediawiki\n[github checks status]: https://badgen.net/github/checks/femiwiki/docker-mediawiki\n[github checks link]: https://github.com/femiwiki/docker-mediawiki\n[femiwiki.com]: https://femiwiki.com\n[docker swarm]: https://docs.docker.com/engine/swarm/\n[docker composer]: https://docs.docker.com/compose/\n[femiwiki/ami]: https://github.com/femiwiki/ami\n[secrets.php]: development/secrets.php.example\n[how to deploy weekly femiwiki to production]: https://github.com/femiwiki/femiwiki/blob/main/how-to-deploy-weekly-femi-wiki-to-production.md\n[php-fpm]: https://php-fpm.org/\n[caddy]: https://caddyserver.com/\n[http://127.0.0.1:8080]: http://127.0.0.1:8080\n[gnu affero general public license v3.0]: LICENSE\n[copyright]: COPYRIGHT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemiwiki%2Fdocker-mediawiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffemiwiki%2Fdocker-mediawiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemiwiki%2Fdocker-mediawiki/lists"}