===============================================html
2019/4/10_第1次修改 ccb_warlockgit
===============================================github
將原先docker swarm的文章拆分後,我決定將docker compose的部署內容單獨整理成文章,使得部署邏輯更清晰。docker
docker compose是docker容器批量編排的工具,能夠經過1個yml文件建立多個docker容器,固然compose工具依賴於docker環境。centos
能夠參考下面的文章安裝docker ce工具
centos7 部署 docker ce:http://www.javashuo.com/article/p-sfmgnggs-ee.htmlcentos7
# 獲取docker-compose文件(1.22.0)到/usr/local/bin目錄下,並改名爲docker-composecode
wget https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose
PS.能夠到https://github.com/docker/compose/releases中找到最新版本的docker-compose-Linux-x86_64,下載後上傳到/usr/local/bin目錄下,並改名爲docker-compose。htm
# 賦予docker-compose文件執行權限blog
chmod +x /usr/local/bin/docker-compose