Hello,
My goal is to integrate onlyoffice into my OCIS server.
After several attempts on my part, I can’t get the expected result.
I manage to launch onlyoffice but the interconnection with OCIS remains a mystery for me.
I’d also like to avoid having to use treaffik, as the reverse proxy is provided by my NAS, which hosts everything.
Below is my current docker-compose:
The result I’m looking to achieve is the integration of the onlyoffice suite into owncloud. This enables compatible document viewing and editing.
All the tutorials that explain how to achieve this talk about a WOPI server that’s supposed to link the two.
For the moment I’ve managed to get OCIS and onlyoffice to work separately, but I can’t find any documentation that allows me to achieve the desired result without Traeffik and without adding other modules which in my case are not necessary.
I just want to have ocis and onlyoffice in the simplest and most concise way.
Now I have to create the ocis app provider service which is in charge of combining everything but I’m totally lost. Here’s the service extracted from a much more complicated docker-compose:
ocis-appdriver-onlyoffice:
image: owncloud/ocis:5.0.0-rc.3@sha256:af464f0fe73c603825a6d55f641389ab31ce6e30a1b91aa4282285c0040bbc55
networks:
ocis-net:
user: "0" # needed for apk add in entrypoint script
entrypoint:
- /bin/sh
- /entrypoint-override.sh
#command: app-provider server
environment:
# use the internal service name of the gateway
OCIS_REVA_GATEWAY: com.owncloud.api.gateway
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
# configure the service name to avoid collision with collabora
APP_PROVIDER_SERVICE_NAME: app-provider-onlyoffice
# use the internal service name
APP_PROVIDER_EXTERNAL_ADDR: com.owncloud.api.app-provider-onlyoffice
APP_PROVIDER_DRIVER: wopi
APP_PROVIDER_WOPI_APP_NAME: OnlyOffice
APP_PROVIDER_WOPI_APP_ICON_URI: https://${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}/web-apps/apps/documenteditor/main/resources/img/favicon.ico
APP_PROVIDER_WOPI_APP_URL: https://${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}
APP_PROVIDER_WOPI_INSECURE: "${INSECURE:-false}"
APP_PROVIDER_WOPI_WOPI_SERVER_IOP_SECRET: ${WOPI_IOP_SECRET:-LoremIpsum123}
APP_PROVIDER_WOPI_WOPI_SERVER_EXTERNAL_URL: https://${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
APP_PROVIDER_WOPI_FOLDER_URL_BASE_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
# share the registry with the ocis container
MICRO_REGISTRY_ADDRESS: ocis:9233
volumes:
- ./config/ocis-appdriver-onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
- ocis-config:/etc/ocis
logging:
driver: "local"
restart: always