O'Reilly logo

Hands-On Microservices with Node.js by Diogo Resende

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mastering Docker Compose

Now that we have our services up and running, we need some more information to manage these services together, and more specifically, to control and monitor its state.

To look at a specific service, you just need its original name. In our case, there's only the service and database to choose from. Let's look at our service:

As I told you previously, the service will probably fail at first and then Docker will restart it before it finally becomes ready. We can see that in this log. If you want to see the logs of all of the services mixed together by date, you can just omit the service name.

Another important command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required