How to check in Docker whether a volume exists and is not empty and run different docker-compose.yml depending on this?
I'm deploying an application with a Dockerfile and docker-compose. It loads a model from an AWS bucket to run the application. When the containers get restarted (not intentionally but because of the cloud provider), it loads again the model from…