Seafile container stuck in idle mode after reboot, only works after restart db and main container

Hi all,

sometimes after a host reboot, my Seafile Docker setup stopped working. The seafile.main container was running, but stuck with this log:

This is an idle script (infinite loop) to keep container running.

The database (seafile.mysql) was healthy and running the whole time. Restarting seafile.main alone didn’t help. Only after stopping both containers and starting the database first, then seafile.main, everything worked again.

I already use depends_on with condition: service_healthy. Has anyone seen this behavior? Any ideas how to make startup more reliable after a reboot?

Thanks!