Skip to content

Synchronous Container Startup in Docker Compose

View on Twitter

💡 wait-for-it is a zero dependency bash script that waits until a service (eg. DB) is ready. It's better than depends_on in Compose because it actually waits for the process to be up, not just container.

https://github.com/vishnubob/wait-for-it/blob/master/wait-for-it.sh

You might also like
Well-Known URL for Changing Passwords Read tip
Improve Nginx Performance: Direct File Transfers Read tip
Playground Application for JavaScript and Node.js Read tip