I think rebuilding the container will resolve your issue. Double-check the hostname details in the app.yml and make sure they’re saved to your liking. Then rebuild Discourse’s container, which destroys the old one, bootstraps a new one, and starts it up.
Navigate to the Discourse directory:
cd /var/discourse
Then use the rebuild command:
./launcher rebuild app
Hope that helps!