2019-11-13 15:34:03 +00:00
|
|
|
# Please see DEVELOPERS.md for help
|
|
|
|
|
#
|
|
|
|
|
# Contributions to this file are welcome but please note that this file is
|
|
|
|
|
# minimal by design, with the idea to make it easily extensible via
|
|
|
|
|
# docker-compose.override.yml. For help with doing that, please see
|
|
|
|
|
# DEVELOPERS.md
|
|
|
|
|
services:
|
|
|
|
|
mediawiki:
|
2024-12-09 21:57:04 +00:00
|
|
|
image: docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0
|
2021-01-29 18:32:01 +00:00
|
|
|
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
|
2019-11-13 15:34:03 +00:00
|
|
|
volumes:
|
2020-09-09 12:27:11 +00:00
|
|
|
- ./:/var/www/html/w:cached
|
2021-01-29 18:32:01 +00:00
|
|
|
env_file:
|
|
|
|
|
- '.env'
|
2019-11-13 15:34:03 +00:00
|
|
|
environment:
|
2020-09-09 12:27:11 +00:00
|
|
|
COMPOSER_CACHE_DIR: '/var/www/html/w/cache/composer'
|
2020-03-04 21:15:31 +00:00
|
|
|
MW_SERVER: 'http://localhost:${MW_DOCKER_PORT:-8080}'
|
2023-04-12 21:37:41 +00:00
|
|
|
MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"
|
MediaWiki-Docker: Remove injection of MW_SCRIPT_PATH
Injecting it does nothing other than break the wiki with 404 errors.
The only thing that uses it is the install.sh script, which then
one-time substitutes it in LocalSettings.php.
It isn't used by the mount logic for /var/www/w, and it isn't used
by the Apache config in the referenced Docker images either.
While the injection is removed, I have kept the following two:
1. It is still set for the docker images so that the env variable
can still be read, to allow new additions to the dev images to
not have to hardcode it, and to perhaps one day actually support
this. It seems useful to retain as abstraction layer from that
perspective.
2. It is still part of the recommended `.env` file. For the same reason
as the previous point, but not theoretical. Our test tools (Selenium,
QUnit, fresh-node, etc.) all expect this env variable for discovery
and those tools are not specific to MediaWiki-Docker so they need
this indeed.
After this change, there remains one weak link, which is someone
copying the recommended .env file and then deciding to change
MW_SCRIPT_PATH for some reason. What will happen is that the wiki
continues to work and identify with "/w", and the only impact is
that external tooling will look for their custom path, and not find
a wiki there.
Bug: T273529
Change-Id: I4aa71f8994810ea0fbe2950958097c223c88916c
2021-09-10 22:29:28 +00:00
|
|
|
MW_SCRIPT_PATH: '/w'
|
2020-09-09 12:27:11 +00:00
|
|
|
MW_DBPATH: '/var/www/html/w/cache/sqlite'
|
2019-11-13 15:34:03 +00:00
|
|
|
MW_DBTYPE: 'sqlite'
|
|
|
|
|
MW_LANG: 'en'
|
2020-09-09 12:27:11 +00:00
|
|
|
MW_USER: '${MEDIAWIKI_USER:-Admin}'
|
|
|
|
|
MW_PASS: '${MEDIAWIKI_PASSWORD:-dockerpass}'
|
2019-11-13 15:34:03 +00:00
|
|
|
MW_SITENAME: 'MediaWiki'
|
2020-09-09 12:27:11 +00:00
|
|
|
MW_LOG_DIR: /var/www/html/w/cache
|
2020-09-09 12:27:11 +00:00
|
|
|
XDEBUG_CONFIG: '${XDEBUG_CONFIG}'
|
|
|
|
|
XDEBUG_ENABLE: '${XDEBUG_ENABLE:-true}'
|
|
|
|
|
XHPROF_ENABLE: '${XHPROF_ENABLE:-true}'
|
|
|
|
|
|
|
|
|
|
mediawiki-web:
|
2024-12-09 21:57:04 +00:00
|
|
|
image: docker-registry.wikimedia.org/dev/bookworm-apache2:1.0.0
|
2021-01-29 18:32:01 +00:00
|
|
|
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
|
2020-09-09 12:27:11 +00:00
|
|
|
ports:
|
|
|
|
|
- "${MW_DOCKER_PORT:-8080}:8080"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./:/var/www/html/w:cached
|
2021-01-29 18:32:01 +00:00
|
|
|
env_file:
|
|
|
|
|
- '.env'
|
2020-09-09 12:27:11 +00:00
|
|
|
environment:
|
|
|
|
|
MW_LOG_DIR: /var/www/html/w/cache
|
2023-04-12 21:37:41 +00:00
|
|
|
MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"
|
2022-09-27 21:10:05 +00:00
|
|
|
|
2020-05-21 18:44:58 +00:00
|
|
|
mediawiki-jobrunner:
|
2024-12-09 21:57:04 +00:00
|
|
|
image: docker-registry.wikimedia.org/dev/bookworm-php83-jobrunner:1.0.0
|
2021-01-29 18:32:01 +00:00
|
|
|
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
|
2020-05-21 18:44:58 +00:00
|
|
|
volumes:
|
2020-09-09 12:27:11 +00:00
|
|
|
- ./:/var/www/html/w:cached
|
2021-01-29 18:32:01 +00:00
|
|
|
env_file:
|
|
|
|
|
- '.env'
|
2020-05-21 18:44:58 +00:00
|
|
|
environment:
|
2020-09-09 12:27:11 +00:00
|
|
|
MW_LOG_DIR: /var/www/html/w/cache
|
|
|
|
|
MW_INSTALL_PATH: /var/www/html/w
|