Persistent nginx/discourse.conf?

Better choice can be to run your container behind an nginx reverse proxy to handle the auth_basic