Nextcloud Office Not Working

I have a domain but I can only get a public ipv6 address. Therefore I set up a docker network to bind my nextcloud and CODE and entered my CODE server domain as

http://ix-collabora-1-collabora-1:9980

.
However, I see from this page that this may cause communication failure, for example a green check in the administration panel but failing to actully open a document, which is exactly my case. Is there any solutions to this?