How to fix "Document Loading Fail" in Nextcloud

I am trying to setup my local Nextcloud suite with a local collabora server using the fallowing docker-compose file:

 version: '3'

services:
  db:
    image: mysql:8.0.32
    command: --default-authentication-plugin=mysql_native_password
    volumes:
      - ./db:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: nextcloud
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: nextcloud
      MYSQL_PASSWORD: nextcloud
    networks:
      - nextcloud

  app:
    image: nextcloud:25.0.6
    ports:
      - 45080:80
    depends_on:
      - db
      - collabora
    volumes:
      - ./nextcloud:/var/www/html
    restart: always
    networks:
      - nextcloud
    environment:
      - NEXTCLOUD_TRUSTED_DOMAINS=cloud.nextcloud.com

  collabora:
    image: collabora/code
    restart: unless-stopped
    networks:
      - nextcloud
    ports:
      - "9980:9980"
    environment:
      - domain=cloud\\.nextcloud\\.com
      - "extra_params=--o:ssl.enable=false  --o:ssl.termination=true"
    tty: true
    cap_add:
      - MKNOD

networks:
  nextcloud:

I’ve also setup with success the like to my local collabora server in nextcloud:

enter image description here

But for some reason I still can not open any document to edit online, in my test, I can not open the “Welcome to Nextcloud Hub.docx” of this local link http://0.0.0.0:45080/apps/files/?dir=/Documents&openfile=7

enter image description here

Could any of you tell me what exactly I am missing?

http://collabora:9980 is definitely wrong.

Please follow this guide: Nextcloud Collabora integration

I’ve just finished looking on that link, I did not find anything related to my problem over there sadly… And why exactly is the collabora:9980 is wrong? I mean the message from above sais “Collabora Online server is reachable”, isn’t it a sign that the collabora server is connected and ready?

then you didn’t worked through the guide and didn’t understand how the integration works.

because the host http://collabora:9980 is not reachable from the client. if you follow the guide you will find the error!