--- services: languagetool: image: meyay/languagetool:latest container_name: languagetool restart: unless-stopped # read_only: true tmpfs: - /tmp:exec cap_drop: - ALL cap_add: - CAP_CHOWN - CAP_DAC_OVERRIDE - CAP_SETUID - CAP_SETGID security_opt: - no-new-privileges ports: # Using default port from the image - 8081:8081 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 # OPTIONAL: disable fixing file owner issues. Image default: false # DISABLE_FILE_OWNER_FIX: false # OPTIONAL: disable the fasttext support. Image default: false # DISABLE_FASTTEXT: false # OPTIONAL: activate debug output for the entrypoint script. Image default: 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