Skip to content

femiwiki/docker-restbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized restbase server Container Registry

A RESTBase Docker image that uses SQLite as its database. This is originally created for FemiWiki.

Usage

The following command starts RESTBase container:

docker run -p 7231:7231 [-e MEDIAWIKI_APIS_URI=...] [-e MEDIAWIKI_APIS_DOMAIN=...] [-e PARSOID_URI=...] femiwiki/restbase

Then, access it via http://localhost:7231 in a browser.

Environment Variables

Variables Default Description
RESTBASE_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']['restbase']['domain'] defined in LocalSettings.php (details)
PARSOID_URI http://parsoid:8000 URI for Parsoid. (must be accessible by docker container)
MATHOID_URI http://mathoid:10044 URI for Mathoid. (must be accessible by docker container)

Build

docker build --tag femiwiki/restbase .
docker push femiwiki/restbase

 


The source code of femiwiki/restbase is primarily distributed under the terms of the GNU Affero General Public License v3.0 or any later version. See COPYRIGHT for details.