What can share a working docker-compose.yml with Collabora CODE service and nginx reverse-proxy config?

In my host server, the installed nginx already listens to 80/443. So I’d like to run a docker-compos.yml for nextcloud and Collabora CODE, then reverse proxify them with the installed nginx. How to make it! I’ve already tried many ways. No luck.