I've in Dockerfile
service which depends on another service, but I'd like to negate the condition when not service_healthy
. So opposite of the following:
service1:
depends_on:
service2:
condition: service_healthy
So basically I'd like to start service1 when service2 is not healthy.
Secondly, based on the documentation for depends_on
, the condition
option has been removed and it is no longer supported in version 3 of Compose file format.
So how the above logic can be achieved?