`
sillycat
  • 浏览: 2489260 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

AMAZON ECS(3)Docker Compose

 
阅读更多
AMAZON ECS(3)Docker Compose

1 Prepare Docker Compose
Follow the Blog I used to have
http://sillycat.iteye.com/blog/2227400

> sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

> sudo docker-compose --version
docker-compose version: 1.3.1
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013

I just check and find out I need to use the latest version
> curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

> sudo docker-compose --version
docker-compose version 1.5.2, build 7240ff3

The configuration file will be easily as follow:
> cat docker-compose.yml
xxxxx-play:
  image: sillycat:xxxxx-play
  ports:
   - "8003:8003"

Command start the service
> sudo docker-compose up

It runs great.

References:
http://sillycat.iteye.com/blog/2227400
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics