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!

reactor
  • 1,200
  • 9
  • 22

1 Answers1

2

You can use the restart policy

Luiz Ferraz
  • 1,173
  • 6
  • 12