diff --git a/Dockerfile b/Dockerfile index cd2684d..8ffb52c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ WORKDIR / # Install extensions ADD add_extension.sh /add_extension.sh RUN chmod +x add_extension.sh -RUN ./add_extension.sh Scribunto $MEDIAWIKI_BRANCH +RUN ./add_extension.sh Scribunto $MEDIAWIKI_BRANCH && \ + ./add_extension.sh VisualEditor $MEDIAWIKI_BRANCH ADD setup.sh /setup.sh RUN chmod +x /setup.sh diff --git a/README.md b/README.md index 82fb026..bd9bdc5 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,7 @@ It extends [the official image](https://hub.docker.com/_/mediawiki/) with the fo * Scribunto * VisualEditor +VisualEditor requires a Parsoid service; see `docker-compose.yml` for example. + ## Auto-migration The image will automatically run migration when a new version is installed. diff --git a/docker-compose.yml b/docker-compose.yml index bf108de..3a0fb04 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,3 +17,8 @@ services: links: - db - cache + - parsoid + parsoid: + image: thenets/parsoid:0.10 + environment: + PARSOID_DOMAIN_web: http://web/api.php