mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-02 20:58:05 +02:00
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:
parent
c2ceda8ab9
commit
f204c7f592
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user