From the course: Docker for Developers

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Practical back end with Compose

Practical back end with Compose - Docker Tutorial

From the course: Docker for Developers

Practical back end with Compose

- - [Instructor] Okay, so now that we've seen how to work with a simple Node and Express backend, let's add a little bit more to a similar project that has routes, a full API with endpoints and a Mongo database, and see how this would work. In the process, we'll introduce Compose. Compose is a tool that allows you to manage multiple containers, and set your entire backend with a single file. Let's take a look at what it looks like. So the first thing we're going to do is go into the backend we created previously, open it and then delete everything but Dockerfile and dockerignore. So you can delete this. And then move it to trash. And then what we're going to do is go into the exercise files and then from the resources, grab the backend right here. So I'll copy all these files into this folder here. Let's go ahead and do that. Copy. And then paste. Perfect. So now let's close those two. And then let's get…

Contents