I have a spring boot application with multi profiles: dev, prod, staging, simulation each connects to different databases and they all have common properties, and I also have a docker file which has some of the properties that I have in the profiles, and I have a task definition.
I know that the task definition has the top priority and it will override all properties in docker and profiles, then the docker comes after in priorities that override the profile properties.
My question is what is the best practice on what properties should go in each file with little explanation why.
Dspring.profiles.active