How to build LanguageTool API Portainer with nginx

So, I have been using Grammarly for my work and myself to learn how to do better with grammar. So, I have been researching for cheaper and affordable, so I found this LanguageTool does provide API on Docker, and It works great. However, we will not get premium though… they are not available for self-host premium yet.

Make sure your nginx Proxy Manager and Portainer up running before we start this. And we don’t need to create a network because it already added in docker.

Go to Portainer sites→ Login admin→ stacks → add stacks:

version: "3"
    image: erikvl87/languagetool
    container_name: applegate-languagetool
        - nginx
        - langtool_languageModel=/ngrams  # OPTIONAL: Using ngrams data
        - Java_Xms=512m  # OPTIONAL: Setting a minimal Java heap size of 512 mib
        - Java_Xmx=1g  # OPTIONAL: Setting a maximum Java heap size of 1 Gib
        - /mnt/applegate5tb/language-tool/data:/ngrams
    external: true

Now deploy the Stack, then open nginx proxy manager sites to add this secure HTTPS site. so let get start

Scheme – HTTP
Forward Hostname – your container_name
Forward Port – 8010 (Default on docker for LanguageTool).
Ensure enable SSL and HTTP/2 and HSTS

Your sites are up and running! Go check it out and test the API.

Download language tools on edge or Firefox or chrome to connect to this API, Desktop PC not have API support yet. Stay tuned on this.


Leave a Reply

Your email address will not be published. Required fields are marked *