2017-04-10 14 views
0

PHP(Symfony)とMongoDBでプロジェクトを作りたいです。Docker with SymfonyとMongoDB

私は、ファイルのドッキングウィンドウ-compose.ymlを作成しました:

web_server: 
build: . 
ports: 
    - 5000:5000 
links: 
    - mongo 

mongo: 
    image: mongo:3.0 
    container_name: mongo 
    command: mongod --smallfiles 
    expose: 
     - 27017 

そして、私はPHPの嵐にドッカー作曲を実行しようが、私はrecived:

Removing old containers... 
(Re)building services... 
mongo uses an image, skipping 
Building web_server 
Cannot locate specified Dockerfile: Dockerfile 
Starting... 
Building web_server 
Cannot locate specified Dockerfile: Dockerfile 
No containers created for service: web_server 
No containers created for service: mongo 
Failed to deploy 'Compose: docker-compose.yml': Some services/containers not started 

私は何を私がすべきかわかりませんDockerfileを含むべきもの、何がコンテナを作成するのか。

ありがとうございます!

答えて