Docker Community Forums

Share and learn in the Docker community.

Stack serviceB depends on serviceA running and healthy

(Tanimientras) #1


As stated in

"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?