Question: Part 2: Add the Static Service to the Docker Compose File Any static web services should be started as a part of the multi-container application.

Part 2: Add the Static Service to the Docker Compose File Any static web services should be started as a part of the multi-container application. Update the file docker-compose.yml of your company's Django-based application to use the new web2 image created in the previous part. This new service should be named web2 and should be exposed on port 8080 of the Docker host. Once you have updated the docker-compose.yml file, use docker compose to start the multi-container Django application. The output of your command should indicate all three containers (db, web, and web2) were created. Make a screen capture showing the creation of the web, web2, and db containers in the docker compose output.

In Firefox, navigate to your web2 service running on port 8080 to display a directory listing that contains the file you created in the previous part. Make a screen capture showing the directory listing served on port 8080.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!