How to automate configuration

Then you can also create a YAML template as suggested and include your template with custom site settings in your container file.

Or do something similar with a plugin and read the site specific settings from a file in your shared directory or from a remote location.