mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 06:57:25 +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:
@@ -7,3 +7,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- .:/opt/php
|
- .:/opt/php
|
||||||
command: ["/opt/php/docker/test_runner.sh"]
|
command: ["/opt/php/docker/test_runner.sh"]
|
||||||
|
composer:
|
||||||
|
image: composer:latest
|
||||||
|
working_dir: /app
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
command:
|
||||||
|
- install
|
||||||
|
Reference in New Issue
Block a user