Can't access docker nextcloud from Internet

Hi,

Just installed nextcloud within docker, running fine in my local server with docker IP like 172.21.0.x, but it can’t be accessed from Internet.

How do I connect this docker IP to a subdomain that has a real IP (such as 192.168.0.x) behind NAT that allows Internet access?

Can anybody help me on this? Thx.

This issue has been resolved by 1. changing the configuration of docker host and container port mapping. 2. add a trusted domain in config/.config.php 3. setup an ‘A’ record in the DNS table. and it works fine then.

Best,
John