-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 2.14 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
services:
languagetool:
image: meyay/languagetool:latest
container_name: languagetool
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
cap_add:
- CAP_SETUID
- CAP_SETGID
- CAP_CHOWN
security_opt:
- no-new-privileges
ports:
# Using default port from the image
- 8010:8010
environment:
# OVERRIDE: comma seperated list of ngram language models to download (if not existing)
# Valid languages are "en", "de", "es", "fr" and "nl". Image default: none
# example: download_ngrams_for_langs: en,de,es
download_ngrams_for_langs: en
# OPTIONAL: container path for the ngrams data. Image default: /ngrams
#langtool_languageModel: /ngrams
# OVERRIDE: container path to the fasttext binary. Image default: /usr/local/bin/fasttext
# langtool_fasttextBinary: /usr/local/bin/fasttext
# OPTIONAL: path to the fasttext model. Image default:/fasttext/lid.176.bin
# langtool_fasttextModel: /fasttext/lid.176.bin
# OVERRIDE: minimal Java heap size. Image default: 256m
# JAVA_XMS: 512m
# OVERRIDE: Maximum Java heap size. Image default: 1536m
# JAVA_XMX: 1536m
# OVERRIDE: Optional: Configure the garbage collector the JVM will use. Image default: ShenandoahGC
# Valid options are: SerialGC, ParallelGC, ParNewGC, G1GC, ZGC, ShenandoahGC
# Note: ZGC might not work
# JAVA_GC: SerialGC
# OVERRIDE: Optional: Set you own custom Java options for the JVM.
# Note: This will render the other JAVA_* options useless.
# JAVA_OPTS:
# OVERRIDE: Set UID for user languagetool. Image default: 783
# MAP_UID: 1026
# OVERRIDE: Set GID for group languagetool. Image default: 783
# MAP_GID: 100
#
# DISABLE_PERMISSION_FIX: false
# DISABLE_FASTTEXT: false
# DEBUG_ENTRYPOINT: false
volumes:
# OPTIONAL: The location of ngrams data on the local machine
- ./ngrams:/ngrams
# OPTIONAL: The location of the fasttext model on the local machine
- ./fasttext:/fasttext