Restart dependent Compose apps when their backend is explicitly restarted
A Compose app can keep stale sockets, connection pools, or cached credentials after an operator deliberately restarts its backend. The article proposes enabling the dependency restart option on the app's long-form depends_on entry, kept separate from each service's restart policy. This makes Compose restart the dependent app when an explicit restart of the backend occurs. Restart policies alone do not provide this behavior, since they only govern a service's own exits. The approach is not a crash cascade, and it does not replace resilient reconnect logic within the application.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in