Docker Community Forums

Share and learn in the Docker community.

Stack serviceB depends on serviceA running and healthy


(Tanimientras) #1

Hi

As stated in https://docs.docker.com/compose/compose-file/#depends_on

"The depends_on option is ignored when deploying a stack in swarm mode with a version 3 Compose file."

As we are trying to deploy using swarm…

Does that means depends_on is ignored just in compose version 3, or in any compose version > 3 ?

What’s the better way to ensure serviceB is not started until serviceA is properly running? Using a entrypoint script or healtchchecks?

Regards