The example I provided above shows how to make changes to discourse.conf when a new container is built.
discourse.conf