Docker Compose service won't come back after restart? Check the restart policy
Debugging a Milvus-dependent service that failed to start in a RAG knowledge base project — full writeup below.
TL;DR
After a host reboot (or a container crash), a group of services didn't come back: the app port had no listener and docker ps -a showed everything Exited. The root cause: docker-compose.yml had no restart policy (default no), so once a container died it stayed dead. Fix: set restart: always on every production service so the infrastructure self-heals after a crash or reboot.