Created
October 23, 2015 06:43
-
-
Save fundon/e6cfc41811425be59a25 to your computer and use it in GitHub Desktop.
Using Docker Compose in Node.js Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # 查看命令行帮助 | |
$ docker-compose | |
$ # 创建 | |
$ docker-compose build | |
$ # 启动 app, redis, mongo 等服务,特点是常驻前台 | |
$ docker-compose up | |
$ # 也可以通过 `start` 启动,特点是常驻在后台 | |
$ docker-compose start | |
$ # 停止服务 | |
$ docker-compose stop | |
$ # 输出日志 | |
$ docker-compose logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment