From the course: Docker Essential Training
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Taking it to the next level with Docker Compose - Docker Tutorial
From the course: Docker Essential Training
Taking it to the next level with Docker Compose
- [Instructor] As we've seen, Docker works really well for running single applications. But what happens when you have an application that relies on multiple components that are running separately? Here's a typical example. You have a web application that relies on APIs or backend services on an application server. The application server stores stuff in a database, which is used by APIs to return information back to the web app. You would like to deploy all of these systems as Docker containers to make it easier to test and scale your app. At first, you might be thinking, "What if I just roll them all into a single Docker image?" The problem with this is that Docker containers are really meant to run one application at a time. While you could use a process supervisor, like we saw earlier, to run multiple applications within a container, you run the risk of losing data or experiencing unpredictable behavior. "Okay,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.