Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
Learn how to use Docker Compose to deploy and run multi-container applications
Docker Compose is a tool for defining and running multi-container applications. A typical example, and one which we will use later, would be a web server container and a database container configured to work together to provide a web application. Docker Compose then allows you to start the whole application with a single command!
You start by creating a Dockerfile, to build docker images of your application – or you can use existing images from a registry. You then define your docker services that you need to run your app in a docker-compose.yml file (see example later). Finally, you can run the whole thing using the docker-compose up command!
That was a quick introduction. In this article I will break down how we go about creating the docker-compose.yml file and how to start the services defined within it.
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help