DesignPatternsPHP/docker-compose.yml
Leonam Pereira Dias f204c7f592 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`.
2018-02-02 15:00:47 -02:00

17 lines
289 B
YAML

version: "3.1"
services:
php:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/opt/php
command: ["/opt/php/docker/test_runner.sh"]
composer:
image: composer:latest
working_dir: /app
volumes:
- .:/app
command:
- install