A Parsoid Docker Image. This is originally created for FemiWiki.
The following command starts a Parsoid container:
docker run -p 8000:8000 [-e MEDIAWIKI_APIS_URI=...] [-e MEDIAWIKI_APIS_DOMAIN=...] ghcr.io/femiwiki/parsoid
Then, access it via http://localhost:8000/\_version in a browser.
Variables | Default | Description |
---|---|---|
PARSOID_NUM_WORKERS | 'ncpu' |
Number of worker processes to spawn. Set to 0 to run everything in a single process without clustering. Use 'ncpu' to run as many workers as there are CPU units |
MEDIAWIKI_APIS_URI | http://http/api.php |
API path for you wiki. (must be accessible by docker container) |
MEDIAWIKI_APIS_DOMAIN | femiwiki.com |
Same as $wgVirtualRestConfig['modules']['parsoid']['domain'] defined in LocalSettings.php (details) |
MEDIAWIKI_APIS_PREFIX | femiwiki |
details |
MEDIAWIKI_LINTING | false |
details |
docker build --tag ghcr.io/femiwiki/parsoid .
docker push ghcr.io/femiwiki/parsoid
The source code of femiwiki/parsoid is primarily distributed under the terms of the GNU Affero General Public License v3.0 or any later version. See COPYRIGHT for details.