Skip to content

Docker-Compose + Supervisor always restart=True? #1161

Open
@oesah

Description

@oesah

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions