cookiecutter-django
cookiecutter-django copied to clipboard
Docker-Compose + Supervisor always restart=True?
So I am using docker-compose in production. I want to implement supervisor too, but I don't understand it completely.
You can set always_restart=always for any container in your docker-compose.yml. Now if I want to use supervisor, how does it work in terms of which process it checks for?
Does Supervisor also check on each container or just the whole docker-compose process? Because if one of the containers fails, the docker-compose process would not be dead, thus supervisor would not really see that a process (in this case a container) died.
So is it useful to use always_restart=True in combination with supervisor or does supervisor recognize each container and its processes?