containarr icon indicating copy to clipboard operation
containarr copied to clipboard

Wait until gluetun is ready [BUG]

Open arsaboo opened this issue 3 years ago • 3 comments

Since all the other services depend on the gluetun service to be ready, it may make sense to add some sort of dependency. Otherwise, I have seen some of the services not work.

arsaboo avatar Mar 22 '22 21:03 arsaboo

Hi, I'll look into this and ensure that all containers are supplied appropriate dependency information.

raer0 avatar Mar 22 '22 23:03 raer0

This should be an easy fix by using dockers compose's depends_on: option. It will control which order containers are started in, however it does not wait for containers to be completely ready before starting the next one. depends_on: Control startup and shutdown order in Compose

TheSlateGray avatar Mar 23 '22 22:03 TheSlateGray

Even, better, we can add condition: service_healthy. This works well.

    depends_on: 
      gluetun:
        condition: service_healthy

arsaboo avatar Mar 24 '22 11:03 arsaboo