Configuration management and change detection

We are doing configuration management by having the docker-compose.yml and rancher-compose.yml files in SVN and the deploying with the rancher CLI. Occassionally, when we do a stop or start this way, I get a warning that a service is out of sync with the configuration in the docker-compose.yml. This is usually because someone has modified the stack through the user interface. But it could also be because there is an unauthorised application that has been added.

At the moment such an unauthorised change can persist for weeks until we have to perform an operation on the stack.

Is there a way to use the rancher CLI to compare the configuration in the compose files with the configuration in the database and give a warning if something is not as it should be?

I would then be able to run a script periodically that checks for changes in every stack.