Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,22 @@ Enjoy with [MediaWiki](https://www.mediawiki.org/) + [VisualEditor](https://www.
Running `sudo docker-compose up` in a checkout of this repository will start containers:

- `db` - A MySQL [container](https://hub.docker.com/r/pastakhov/mysql/), used as the database backend for MediaWiki.
- `elasticsearch` - An [Elasticsearch](https://www.elastic.co/products/elasticsearch) [container](https://hub.docker.com/_/elasticsearch/), used as the full-text search engine for MediaWiki
- `elasticsearch` - An [Elasticsearch](https://www.elastic.co/products/elasticsearch) [container](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html), used as the full-text search engine for MediaWiki
- `memcached` - A memory object caching system [container](https://hub.docker.com/_/memcached/), used as the cache system for MediaWiki
- `parsoid` - A [bidirectional runtime wikitext parser](https://www.mediawiki.org/wiki/Parsoid) [container](https://hub.docker.com/r/pastakhov/parsoid/), used by [VisualEditor](https://www.mediawiki.org/wiki/VisualEditor), [Flow](https://www.mediawiki.org/wiki/Flow) and other [MediaWiki extensions](https://www.mediawiki.org/wiki/Extensions)
- `proxy` - [Varnish reverse proxy server](https://www.mediawiki.org/wiki/Manual:Varnish_caching) [container](https://github.com/pastakhov/docker-mediawiki-varnish/) which reduces the time taken to serve often-requested pages
- `restbase` - A [REST storage and service dispatcher](https://www.mediawiki.org/wiki/RESTBase) [container](https://hub.docker.com/r/pastakhov/restbase/)
- `web` - An Apache/MediaWiki container with PHP 7.0 and MediaWiki 1.29

The elasticsearch, parsoid, restbase, proxy, web containers are based on [Ubuntu](https://hub.docker.com/_/ubuntu/) 16.04
The parsoid, restbase, proxy, web containers are based on [Ubuntu](https://hub.docker.com/_/ubuntu/) 16.04

The ElasticSearch container has requirements reguarding `vm.max_map_count`, and thus you need to do the following:

``` sh
sysctl -w vm.max_map_count=262144
```

You can also permanently set this setting by putting the file `etc/sysctl.d/99-elasticsearch.conf` on the root filesystem and doing `sysctl -p` or rebooting.

## Settings

Expand Down
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ services:

web:
build:
context: ./web
dockerfile: Dockerfile
context: web
restart: always
depends_on:
- db
Expand Down Expand Up @@ -85,8 +84,15 @@ services:
- RB_CONF_PDF_URI=http://pdf:3000

elasticsearch:
image: elasticsearch:5.6
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.8
restart: always
environment:
- "xpack.graph.enabled=false"
- "xpack.ml.enabled=false"
- "xpack.monitoring.enabled=false"
- "xpack.security.enabled=false"
- "xpack.watcher.enabled=false"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"

pdf:
image: msokk/electron-render-service
Expand Down
1 change: 1 addition & 0 deletions etc/sysctl.d/99-elasticsearch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vm.max_map_count=262144
2 changes: 1 addition & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN set -x; \
&& rm /var/www/html/index.html \
&& rm -rf /etc/apache2/sites-enabled/*

ENV MW_VERSION=REL1_29 \
ENV MW_VERSION=REL1_30 \
MW_HOME=/var/www/html/w \
MW_VOLUME=/mediawiki \
WWW_USER=www-data \
Expand Down
2 changes: 1 addition & 1 deletion web/run-apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ run_script_if_needed () {
fi
}

chown -R $WWW_USER:$WWW_GROUP $MW_VOLUME $MW_HOME
chown -R $WWW_USER:$WWW_GROUP $MW_HOME/images

cd $MW_HOME

Expand Down