On your server, in the file /var/discourse/containers/app.yml, what is DISCOURSE_HOSTNAME set to?
/var/discourse/containers/app.yml
DISCOURSE_HOSTNAME