# Get Collabora running?

**URL:** <https://help.nextcloud.com/t/get-collabora-running/86650>\
**Category:** 📄 Office\
**Tags:** docker, collabora-online\
**Created:** [July 6, 2020, 2:40pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650 "2020-07-06T14:40:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Horus107](https://help.nextcloud.com/letter_avatar/horus107/32/6_22734026db12803ebb3e059622ac3534.png) [@Horus107](https://help.nextcloud.com/u/Horus107)\
**Post date:** [July 6, 2020, 2:40pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/1 "2020-07-06T14:40:00Z")

</div>

Hello,

I try to get Collabora running, together with Traefik and Docker. My `docker-compose.yaml` looks like

```auto
version: '3'

services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - [...]

  app:
    image: nextcloud
    depends_on:
      - db
    volumes:
      - nextcloud:/var/www/html
    restart: always
    environment:
       - TRUSTED_PROXIES=172.18.0.2
      - OVERWRITEPROTOCOL=https
      
    labels:
      - [...]
    networks:
      - traefik_proxy
      - default

  collabora:
    image: collabora/code
    ports:
      - 9980:9980
    cap_add:
      - MKNOD
    environment:
      - extra_params=--o:ssl.enable=false
      - username=[...]
      - password=[...]
      - domain=nc.domain.tld

volumes:
  nextcloud:
  db:

networks:
  traefik_proxy:
    external:
      name: traefik_proxy

```

I try using the included CODE development server, as well as the docker container. The result is always the same: I open a .docx file in the web interface (like `Welcome to Nextcloud.docx`), the main part of the screen goes white and nothing else happens. Also, the logs (container output) gives nothing useful.

The same happens, when I set up nextcloud to use my own Collabora sever with the URL [http://nc.domain.tld:9980](http://nc.domain.tld:9980) with disabled certificate checking.

In any case, the settings say that the server is reachable.

It’s a fresh installation of Nextcloud 19.

What can be the problem here? Where else to look?

Thanks!

---

<div class="post-metadata">

**Author:** ![meonkeys](https://help.nextcloud.com/user_avatar/help.nextcloud.com/meonkeys/32/27937_2.png) [@meonkeys](https://help.nextcloud.com/u/meonkeys)\
**Post date:** [August 11, 2020, 6:07pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/2 "2020-08-11T18:07:06Z")

</div>

Have you had any luck getting this to work? I’m running into similar issues.

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [August 11, 2020, 6:51pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/3 "2020-08-11T18:51:49Z")

</div>

@Horus107 @meonkeys Maybe that can help you (if you use php-fpm, & nginx):

> **[ReinerNippes/nextcloud\_on\_docker](https://github.com/ReinerNippes/nextcloud_on_docker)**
>
> Run Nextcloud in Docker Container on various Linux Hosts - ReinerNippes/nextcloud\_on\_docker

have a look at the nginx.conf

> <https://github.com/ReinerNippes/nextcloud_on_docker/blob/e2ffad7ba60d423272317ae6106ab2d94cfd391b/roles/docker_container/templates/nginx.conf.j2#L83>

and how to setup collabora:

> <https://github.com/ReinerNippes/nextcloud_on_docker/blob/e2ffad7ba60d423272317ae6106ab2d94cfd391b/roles/nextcloud_config/tasks/configure_collabora.yml#L14>

if you have problems reading the ansible/jinja stuff you just run the playbook on a test server and inspect the resulting setup.

e.g.: ![grafik](https://help.nextcloud.com/uploads/default/original/3X/0/c/0c92ca794d2bcc107c901c7fd4a439adcdf739dc.png) the domain dots needs to be quoted -\> `domain=nc\.domain\.tld` (or double quoted, dont remember.)

---

<div class="post-metadata">

**Author:** ![meonkeys](https://help.nextcloud.com/user_avatar/help.nextcloud.com/meonkeys/32/27937_2.png) [@meonkeys](https://help.nextcloud.com/u/meonkeys)\
**Post date:** [August 11, 2020, 10:51pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/4 "2020-08-11T22:51:08Z")

</div>

Thanks. I got mine working, yay! After a bunch of trial and error I learned I needed to customize the file `/etc/loolwsd/loolwsd.xml` directly, following [Unauthorized WOPI Host with Nextcloud 16 on custom port](https://help.nextcloud.com/t/unauthorized-wopi-host-with-nextcloud-16-on-custom-port/54991) . I’m running Nextcloud from the official Docker image behind a Traefik reverse proxy.

This is the error I _was_ seeing:

```auto
wsd-00007-00042 2020-08-11 18:28:49.866509 [docbroker_001] ERR No acceptable WOPI hosts found matching the target host [cloud.example.com] in config.| wsd/Storage.cpp:282

```

---

<div class="post-metadata">

**Author:** ![quentino18](https://help.nextcloud.com/letter_avatar/quentino18/32/6_22734026db12803ebb3e059622ac3534.png) [@quentino18](https://help.nextcloud.com/u/quentino18)\
**Post date:** [March 26, 2021, 12:16pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/5 "2021-03-26T12:16:11Z")

</div>

Thanks for your tip 🙂

For those who are looking for a simpler way with Docker and Traefik as a reverse proxy :  
You can use the _domain_ environment variable and set it to your nextcloud domain.

Docker-compose :

```auto
  collabora:
    image: collabora/code
    container_name: nextcloud_collabora
    ports:
      - "9980:9980"
    depends_on:
      - nextcloud
    cap_add:
     - MKNOD
    environment:
      - username=admin #This is used to access collabora admin panel : https://www.subdomain.domain.tld/loleaflet/dist/admin/admin.html
      - password=MyCollaboraAdminPassword
      # Domain the service should be accessed from:
      - domain=domain\\.tld
      - dictionaries=en fr
      # SSL terminates at the proxy (https://www.collaboraoffice.com/code/nginx-reverse-proxy/)
      - extra_params=--o:ssl.enable=false --o:ssl.termination=true
    labels:
      - traefik.enable=true
      - traefik.http.routers.collabora.entrypoints=https
      - traefik.http.routers.collabora.rule=Host(`collabora.domain.tld`)
      - traefik.http.routers.collabora.tls.certresolver=letsencrypt
    networks:
      - traefik_net
      - cloud_net
```

---

<div class="post-metadata">

**Author:** ![4Next](https://help.nextcloud.com/letter_avatar/4next/32/6_22734026db12803ebb3e059622ac3534.png) [@4Next](https://help.nextcloud.com/u/4Next)\
**Post date:** [April 12, 2021, 4:49pm UTC](https://help.nextcloud.com/t/get-collabora-running/86650/6 "2021-04-12T16:49:18Z")

</div>

Hello Quantino18,

Thanks for this docker-compose file !

I have two questions:

- what do you indicate to nextcloud when filling in the collabora server name (and maybe port) ?
- with this config, do you have access to the `/loleaflet/dist/admin/admin.html` URL ? since this is supposed to go through 443 and not 9980 ?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:37am UTC](https://help.nextcloud.com/t/get-collabora-running/86650/7 "2024-12-12T07:37:57Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:37am UTC](https://help.nextcloud.com/t/get-collabora-running/86650/8 "2024-12-12T07:37:58Z")

</div>


