Chapter 8

  1. The following code can be used to run the application in daemon mode.
$ docker-compose up -d
  1. Execute the following command to display the details of the running service.
$ docker-compose ps

This should result in the following output:

Name             Command              State  Ports
-------------------------------------------------------------------
mycontent_nginx_1 nginx -g daemon off; Up 0.0.0.0:3000->80/tcp
  1. The following command can be used to scale up the web service:
$ docker-compose up --scale web=3