43 lines
1.9 KiB
YAML
43 lines
1.9 KiB
YAML
captainVersion: 4
|
|
services:
|
|
$$cap_appname:
|
|
image: erikvl87/languagetool:$$cap_version
|
|
restart: always
|
|
environment:
|
|
langtool_languageModel: /ngrams # OPTIONAL: Using ngrams data
|
|
Java_Xms: $$cap_min_size # OPTIONAL: Setting a minimal Java heap size of 512 mib
|
|
Java_Xmx: $$cap_max_size # OPTIONAL: Setting a maximum Java heap size of 1 Gib
|
|
#langtool_pipelinePrewarming: true
|
|
volumes:
|
|
- $$cap_appname-data:/ngrams
|
|
caproverExtra:
|
|
containerHttpPort: 8010
|
|
caproverOneClickApp:
|
|
variables:
|
|
- id: $$cap_version
|
|
label: LanguageTool Version
|
|
defaultValue: '6.1'
|
|
description: Check out their docker page for the valid tags https://hub.docker.com/r/erikvl87/languagetool/tags
|
|
validRegex: /^([^\s^\/])+$/
|
|
- label: Minimal heap size
|
|
description: Setting a minimal Java heap size
|
|
defaultValue: 512m
|
|
id: $$cap_min_size
|
|
- label: Maximum heap size
|
|
description: Setting a maximum Java heap size
|
|
defaultValue: 1g
|
|
id: $$cap_max_size
|
|
instructions:
|
|
start: >-
|
|
LanguageTool is an Open Source proofreading software for English, Spanish, French, German, Portuguese, Polish, Dutch, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.
|
|
end: >-
|
|
You're done! 😄
|
|
|
|
You can test your configuration here: http://$$cap_appname.$$cap_root_domain/v2/check?language=en-US&text=my+text
|
|
|
|
To configure your LanguageTool client use this link in _other server_ section: http://$$cap_appname.$$cap_root_domain/v2/
|
|
displayName: 'LanguageTool'
|
|
isOfficial: false
|
|
description: Style and Grammar Checker for 25+ Languages.
|
|
documentation: Taken from https://hub.docker.com/r/erikvl87/languagetool
|