Monitoring commands
A common case in day-to-day development is monitoring an application and ensuring it is operating properly. From an application using too many resources to an elusive bug, or even an application restarting, there are various cases of an application malfunctioning. For these cases, monitoring commands play a crucial role.
Logs
Logs provide the ability to view the logs of a Compose application running on our system. If we run the up
command in detached mode, we won’t be able to see any logs:
$ docker compose up -d [+] Running 2/2 Network chapter4_default Created ...