Waiting for Docker Services to be Ready

Edward Cernera
4 min readMar 8, 2020
Shipping containers stacked
Photo by frank mckenna on Unsplash

Purpose

The purpose of this article is to illustrate how we can implement a simple “waiting” method in docker-compose. With certain docker orchestrations, a container will start, but its internal services still need some time to start up before the service will be available via the container’s exposed port(s).

Example

--

--

Edward Cernera

Software Engineer | I write software tutorials because I can’t find them anywhere. Creator of DealPunkk - dealpunkk.com | About Me - cernera.me/edward