- The following code can be used to run the application in daemon mode.
$ docker-compose up -d
- 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
- The following command can be used to scale up the web service:
$ docker-compose up --scale web=3