Skip to content

Commit f204c7f

Browse files
committed
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`.
1 parent c2ceda8 commit f204c7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ services:
77
volumes:
88
- .:/opt/php
99
command: ["/opt/php/docker/test_runner.sh"]
10+
composer:
11+
image: composer:latest
12+
working_dir: /app
13+
volumes:
14+
- .:/app
15+
command:
16+
- install

0 commit comments

Comments
 (0)