Docker-based setup not able to enable self-hosted LanguageTool

I have a Docker-based setup and am trying to enable a self-hosted LanguageTool service. All backend tests show the configuration is perfect, but the grammar check feature never appears in the Nexcloud Office UI for Colabora, even for English.

My docker-compose.yml:

services:
  languagetool:
    image: collabora/languagetool
    container_name: languagetool
    restart: always
    networks:
      - office-net
    environment:
      JAVAOPTIONS: -DlanguageTool.preloadedLanguages=en-GB,id-ID

  collabora:
    image: collabora/code
    container_name: collabora
    restart: always
    ports:
      - "127.0.0.1:9980:9980"
    networks:
      - office-net
    cap_add:
      - MKNOD
      - SYS_ADMIN
    volumes:
      - ./coolwsd.xml:/etc/coolwsd/xml:ro

networks:
  office-net:
    driver: bridge

My coolwsd.xml (mounted at /root/coolwsd.xml ):

<config>
    <ssl>
        <enable type="bool">false</enable>
        <termination type="bool">true</termination>
    </ssl>
    <storage>
        <wopi>
            <host>http://mydomain.com</host>
        </wopi>
    </storage>
    <server_name>collabora.mydomain.com</server_name>
    <languagetool>
        <enabled type="bool">true</enabled>
        <base_url>http://languagetool:8010/v2</base_url>
    </languagetool>
</config>

Any ideas? Thanks

Collabora Online Development Edition 25.04.1.1 f22c9fed45

Hello @dala

1. Is Collabora Actually Seeing LanguageTool?

Even if backend tests pass, it’s worth confirming Collabora can talk to the LanguageTool container.

Run from the collabora container:

bash

CopyEdit

docker exec -it collabora bash
curl http://languagetool:8010/v2/check

You should get a JSON response with an error message like “Missing required parameter: text”, which is good — that confirms connectivity.

If not, fix Docker DNS (e.g., check if office-net is really connected properly).

2. This seems incorrect.

You must mount the file as:

yaml

CopyEdit

- ./coolwsd.xml:/etc/coolwsd/coolwsd.xml:ro

Because Collabora expects the file at /etc/coolwsd/coolwsd.xml, not in a subfolder xml.

Fix this and restart the container.

For more details see: LanguageTool — SDK https://sdk.collaboraonline.com/ documentation

Thanks
Darshan