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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started