From the course: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Challenge: Selecting the right network - Docker Tutorial
From the course: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
Challenge: Selecting the right network
(light music) - [Instructor] In this challenge, you'll be given a scenario and questions to reinforce your learning about types of networks. The topic for this challenge is isolated database and web containers on the same host. Here's the scenario. You're deploying a web application with a database on the same Docker host. The web application needs to access the database, but you want to ensure that these containers are isolated from other applications running on the host. The containers should be able to communicate with each other, but not with external applications, unless explicitly exposed. Which network types should you use to isolate these containers while still allowing communication between the web app and the database? What benefit does this network type provide compared to others? That's it. Good luck on this challenge and in the next video, I'll show you what I came up with for the solution.