How to implement flexible configuration while deploying project on docker as loraserver project does

Hi brocaar,
It’s so convenient to deploy loraserver using loraserver-docker. For different environment, just modify some configurations in .toml file under the folder of configuration/lora-${app}-server and type “docker-compose up”.

I’d like to implement this technical in my project.
But, as a beginner to Go and Docker it is not easy for me even if I have cloned the source code from github.

Would you please give a simple guide when you have time?
What I know is the configuration is based on cobra and viper.

Thanks!
Bruce