#How are configuration files loaded? How are settings chosen/overwritten/merged?
1 messages · Page 1 of 1 (latest)
Config files are given priority based on the order they are provided. So priority will be in following order --> app-config.docker.yaml >>> app-config.production.yaml >>> app-config.yaml
So if any key is present in all the three files then, value of app-config.docker.yaml will be taken.
Thank Prateek - so it follows an override policy? Or merge-override-if-exist?
yes. it follows merge-override-if exist pattern.
Exactly. That way you don't have to repeat yourself so much. You often have a "base" config with all of the universal truths, and then small slices of config that hold only the variations for each env