Add composer image to docker-compose.yml

There's a service for php but we need to install composer in the php container or worse, install projects' dependencies through composer installed locally.

It adds a new service for composer and permit to run composer within a container with just a command: `docker-compose run composer install`.
This commit is contained in:
Leonam Pereira Dias 2018-02-02 15:00:47 -02:00
parent c2ceda8ab9
commit f204c7f592

View File

@ -7,3 +7,10 @@ services:
volumes:
- .:/opt/php
command: ["/opt/php/docker/test_runner.sh"]
composer:
image: composer:latest
working_dir: /app
volumes:
- .:/app
command:
- install