[version_1.0]
In this exercise, you launch the containers by using Docker Compose.
In this task, you will install Docker Compose. You will then build with Docker Compose by using the docker-compose.yml
file, which will launch four containers.
In the AWS Management Console, choose Services, and then search for and open Cloud9.
Open your AWS Cloud9 integrated development environment (IDE)instance.
To install Docker Compose, run the following command.
Build by using the docker-compose.yml
file.
In this task, you will launch the containers through Docker Compose.
Launch the containers.
Check the status of your running containers.
You should see four containers:Exec into the directory-frontend container.
Inside the container, run the following commands.
View the application frontend by choosing Preview, Preview Running Application.
Add some users to the corporate directory by choosing Add, filling out the form, and choosing Save.
View the logs from the directory-frontend container.
Stop and remove the Docker resources by running the docker-compose down
command.