1

I have a server that runs earlier than a postgresql and I read that docker-compose v3 no longer honors depends_on using healthchecks. I was wondering what other options I have outside of something like wait-for. That is, I would like for docker-compose to restart containers that close/shutdown after failure. I found this thread which shows how to restart a container with docker-compose How to restart a single container with docker-compose but that doesn't address my issue. Thanks!

1 Answer 1

2

You can use the restart policy

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.