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

**URL:** <https://forum.collaboraonline.com/t/docker-based-setup-not-able-to-enable-self-hosted-languagetool/3773>\
**Category:** Installation & Configuration\
**Created:** [June 14, 2025, 9:00am UTC](https://forum.collaboraonline.com/t/docker-based-setup-not-able-to-enable-self-hosted-languagetool/3773 "2025-06-14T09:00:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dala](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dala](https://forum.collaboraonline.com/u/dala)\
**Post date:** [June 14, 2025, 9:00am UTC](https://forum.collaboraonline.com/t/docker-based-setup-not-able-to-enable-self-hosted-languagetool/3773/1 "2025-06-14T09:00:32Z")

</div>

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`:**

```auto
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` ):

```auto
<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

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [June 16, 2025, 6:43am UTC](https://forum.collaboraonline.com/t/docker-based-setup-not-able-to-enable-self-hosted-languagetool/3773/2 "2025-06-16T06:43:51Z")

</div>

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:

```auto
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:

```auto
- ./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: [https://sdk.collaboraonline.com/docs/language\_tool.html](https://sdk.collaboraonline.com/docs/language_tool.html)

Thanks  
Darshan

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [January 6, 2026, 7:19am UTC](https://forum.collaboraonline.com/t/docker-based-setup-not-able-to-enable-self-hosted-languagetool/3773/3 "2026-01-06T07:19:42Z")

</div>

Closed on January 6, 2026, 7:19am UTC


