I am trying to deploy NextCloud with Collabora by docker-compose.
I have docker-compose.yml:
next-cloud:
image: 'ris-next-cloud:latest'
restart: always
build:
context: .
dockerfile: DockerfileNextCloud
container_name: next_cloud
ports:
- 9000:80
links:
- db-next-cloud
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_HOST=db-next-cloud:5432
- NEXTCLOUD_ADMIN_USER=ris
- NEXTCLOUD_ADMIN_PASSWORD=ris
collabora:
image: 'ris-collabora:latest'
restart: always
build:
context: .
dockerfile: DockerfileCollabora
container_name: collabora
environment:
- extra_params=--o:ssl.enable=false
ports:
- 9980:9980
Containers started success.
When i go to url localhost:9980 i get response OK.
When i go to nextcloud everything ok too.
Now I wanted to connect Collabora and NextCloud following this instruction: How to Install Nextcloud Office - Nextcloud
- I installed NextCloud office
- I also added the path to the collabora container
But when I open the .odt file, the editor doesn’t open.
This request fails
If I change the collabora:9980 to host ip 192.168.0.213:9980 then everything works
Can I connect a collabora by docker-compose service name in another way?