Docker-compose Docker Boot Tool

Source: Internet
Author: User
Tags docker compose
Brief introduction:

Docker can run a configured server on a single command, which is handy.

But there is also a problem is that when the parameters are more, the mapping directory is more, map port more ...

I used to write a script, start with a foot, very low ah.

Also see some of the Docker Image introduction page has introduced Docker-compose, but because has been a small application, also did not seriously look at this thing, today, learn a bit.

Docker compose is a Docker tool for defining and running complex applications

The data structure inside is much clearer than a few lines of my script. And you can start multiple containers at the same time, and they are started on a dependency basis.

For example, start the database first, and then start the blog.

One: Installation

Similar to installing Docker.

Installing Docker is DNF install Docker

Installing Docker-compose is DNF install Docker-compose

DNF is the package management tool that I use for fedora, depending on your Linux version, it may be different.

Two: simple example 1. No brain trial


Docker-compose Docker Boot Tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.