Skip to content

Instantly share code, notes, and snippets.

@AnneTee
Last active March 19, 2021 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnneTee/8fce54e401b51ecd2eb9202d2c1f643f to your computer and use it in GitHub Desktop.
Save AnneTee/8fce54e401b51ecd2eb9202d2c1f643f to your computer and use it in GitHub Desktop.
This is a sample docker-compose override file that contains some configuration needed for local development of some Structured Data extensions. Note that this may quickly become outdated when updates are made to mediawiki-docker, so you should check the DEVELOPERS.md file in core to make sure your docker-compose.override.yml file is up-to-date.
#
# docker-compose override file for Structured Data projects.
# See https://www.mediawiki.org/wiki/MediaWiki-Docker
#
version: '3.7'
services:
# These lines ensure file ownership is set to your host user/group
mediawiki:
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
# Linux users only: this extra_hosts section is necessary for Xdebug:
extra_hosts:
- "host.docker.internal:host-gateway"
mediawiki-web:
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
mediawiki-jobrunner:
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
elasticsearch:
image: docker-registry.wikimedia.org/dev/stretch-elasticsearch:0.1.0
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
volumes:
esdata:
driver: local
@AnneTee
Copy link
Author

AnneTee commented Jan 28, 2021

@rakugama you're right! I've been meaning to update this file for a while to remove the duplicate lines and a few things that aren't needed anymore since mediawiki-docker has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment