Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abn/jamspell-server-docker

A docker container for the JamSpell HTTP API Server
https://github.com/abn/jamspell-server-docker

Last synced: 7 days ago
JSON representation

A docker container for the JamSpell HTTP API Server

Awesome Lists containing this project

README

        

# JamSpell HTTP API Server Docker Container

A docker container for the [JamSpell HTTP API Server](https://github.com/bakwc/JamSpell#http-api).

## Environment Configuration
| Environment Variable | Description | Default Value |
| ------------- | ------------- | ------------- |
| HOST | Bind interface for the server | `0.0.0.0` |
| PORT | Port to expose server on | `8080` |
| DATA_DIR | Directory where models are mounted | `/opt/jamspell/data` |
| MODEL | Model file to use from `DATA_DIR` | `en.bin` |

## Example Usage
```
$ docker run --rm -it -v `pwd`/en.bin:/opt/jamspell/data/en.bin alectolytic/jamspell-server
+ /usr/bin/jamspell-server /opt/jamspell/data/en.bin 0.0.0.0 8080
[info] loading model
[info] starting web server at 0.0.0.0:8080
```