wiki.techinc.nl/docker-compose.yml
Brennen Bearnes c1be006203 docker: update to latest published images
Updates docker-compose.yml to the most recent published versions of the
following:

  - docker-registry.wikimedia.org/dev/buster-apache2:2.0.0-s2
  - docker-registry.wikimedia.org/dev/buster-php81-fpm:1.0.1-s2
  - docker-registry.wikimedia.org/dev/buster-php81-jobrunner:1.0.1-s2

Follows up on a string of recent dev-images changes:

  - https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/36
  - https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/39
  - https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/40
  - https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/41
  - https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/42

I've tested these to the extent of:

  $ docker compose up -d

Followed by some clicking around on http://localhost:8080 - I haven't
tested jobrunners or xdebug.

Bug: T338208
Change-Id: I3b82b9fdca9c9424c82f5971e31d2cb467622826
2023-07-07 12:57:25 -06:00

54 lines
1.7 KiB
YAML

# 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
version: '3.7'
services:
mediawiki:
image: docker-registry.wikimedia.org/dev/buster-php81-fpm:1.0.1-s2
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
volumes:
- ./:/var/www/html/w:cached
env_file:
- '.env'
environment:
COMPOSER_CACHE_DIR: '/var/www/html/w/cache/composer'
MW_SERVER: 'http://localhost:${MW_DOCKER_PORT:-8080}'
MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"
MW_SCRIPT_PATH: '/w'
MW_DBPATH: '/var/www/html/w/cache/sqlite'
MW_DBTYPE: 'sqlite'
MW_LANG: 'en'
MW_USER: '${MEDIAWIKI_USER:-Admin}'
MW_PASS: '${MEDIAWIKI_PASSWORD:-dockerpass}'
MW_SITENAME: 'MediaWiki'
MW_LOG_DIR: /var/www/html/w/cache
XDEBUG_CONFIG: '${XDEBUG_CONFIG}'
XDEBUG_ENABLE: '${XDEBUG_ENABLE:-true}'
XHPROF_ENABLE: '${XHPROF_ENABLE:-true}'
mediawiki-web:
image: docker-registry.wikimedia.org/dev/buster-apache2:2.0.0-s2
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
ports:
- "${MW_DOCKER_PORT:-8080}:8080"
volumes:
- ./:/var/www/html/w:cached
env_file:
- '.env'
environment:
MW_LOG_DIR: /var/www/html/w/cache
MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"
mediawiki-jobrunner:
image: docker-registry.wikimedia.org/dev/buster-php81-jobrunner:1.0.1-s2
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
volumes:
- ./:/var/www/html/w:cached
env_file:
- '.env'
environment:
MW_LOG_DIR: /var/www/html/w/cache
MW_INSTALL_PATH: /var/www/html/w