Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/femiwiki/docker-restbase
📝 Dockerized RESTBase
https://github.com/femiwiki/docker-restbase
docker-image restbase
Last synced: about 2 months ago
JSON representation
📝 Dockerized RESTBase
- Host: GitHub
- URL: https://github.com/femiwiki/docker-restbase
- Owner: femiwiki
- License: agpl-3.0
- Created: 2019-01-02T11:30:30.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T21:57:58.000Z (9 months ago)
- Last Synced: 2024-05-02T15:16:04.885Z (9 months ago)
- Topics: docker-image, restbase
- Language: JavaScript
- Homepage:
- Size: 231 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockerized restbase server [![Container Registry]][Container Registry Link]
========A [RESTBase] Docker image that uses SQLite as its database. This is originally created for [FemiWiki].
## Usage
The following command starts RESTBase container:
```sh
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](https://www.mediawiki.org/wiki/Manual:LocalSettings.php) ([details](https://www.mediawiki.org/wiki/RESTBase/Installation#Configuration))
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
```sh
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.[Container Registry]: https://badgen.net/badge/icon/docker?icon=docker&label
[Container Registry Link]: https://github.com/orgs/femiwiki/packages/container/restbase
[FemiWiki]: https://femiwiki.com
[RESTBase]: https://www.mediawiki.org/wiki/RESTBase
[GNU Affero General Public License v3.0]: LICENSE
[COPYRIGHT]: COPYRIGHT