Learning: Simple project with basic use of docker-compose to control Docker containers.
This project formed part of an online course on how to use Docker.
This section introduced Docker Compose as a mechanism to create and manage a multi container application. In this instance we have a bespoke Node.js Express.js application, which stores data in a redis instance.
To run Docker Compose run the following command:
docker-compose upTo quit, issue CTRL-C in the command line.
More than likely you will want to run the containers in the background. To run the application in the background run:
docker-compose up -dYou will then need to stop the containers by issuing another command.
To stop the running containers that are running in the background, run:
docker-compose down