take a look at Nextcloud Collabora integration. The integration using WOPI protocol is same and all the mechanics should work similar.
btw: as soon you start production I strongly recommend to use defined docker tags and avoid :latest
https://vsupalov.com/docker-latest-tag/