-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.