2016-12-26 104 views
0

這是我的項目的樹結構:搬運工,撰寫了多陽明confs沒有開始

. 
├── backend-codebase 
│   ├── app.js 
│   ├── bin 
│   │   └── www 
│   ├── config.js 
│   ├── db 
│   │   ├── index.js 
│   │   ├── repos 
│   │   │   └── todos.js 
│   │   └── sql 
│   │    ├── index.js 
│   │    └── todos 
│   ├── dev 
│   │   └── postgres 
│   ├── index.js 
│   ├── package.json 
│   ├── public 
│   │   ├── images 
│   │   ├── javascripts 
│   │   └── stylesheets 
│   │    └── style.css 
│   ├── routes 
│   │   ├── api.js 
│   │   ├── index.js 
│   │   └── users.js 
│   ├── scripts 
│   │   ├── applyFixtures.js 
│   │   ├── dev_entrypoint.sh 
│   │   ├── fixtures.json 
│   │   └── psql_dump.sql 
│   ├── views 
│   │   ├── api.ejs 
│   │   ├── db.ejs 
│   └── yarn.lock 
├── dev 
│   ├── Dockerfile-node 
│   ├── Dockerfile-postgres 
│   ├── development.sh 
│   ├── docker-compose-common.yml 
│   ├── docker-compose-dev.yml 
│   └── postgres 
│    ├── 12-12-2016_16_58_59.dump 
... 

我爲了創建三個容器使用docker-compose和orcherstrate一切: - 節點服務器 - 一個postgres數據庫 - 一個數據容器的數據庫

加,我創建了兩個(和第三個是缺少)yaml文件下/dev/docker-compose-*.ymldocker-compose-dev擴展了常見的一個,應該建立圖像以及運行所有的圖像。

爲了開始的一切,我試圖啓動以下:

$ docker-compose up --file dev/docker-compose-common.yml --file dev/docker-compose-dev.yml 

但我得到的是這樣的輸出:

Builds, (re)creates, starts, and attaches to containers for a service. 

Unless they are already running, this command also starts any linked services. 

The `docker-compose up` command aggregates the output of each container. When 
the command exits, all cont 

我真不明白我在做什麼錯了

回答

0

傻,傻我。 它只是參數和命令之間的順序顛倒。

另外,我可以刪除第一個--file參數,因爲它是通過使用extends yaml鍵引用的。

docker-compose -f dev/docker-compose-dev.yml up