Skip to content

Instantly share code, notes, and snippets.

@NigelGreenway
Created October 28, 2017 18:53
Show Gist options
  • Save NigelGreenway/a917bc993a15c2f972c43836955e7c2d to your computer and use it in GitHub Desktop.
Save NigelGreenway/a917bc993a15c2f972c43836955e7c2d to your computer and use it in GitHub Desktop.
version: "2"
services:
composer:
image: prooph/composer:7.1
container_name: test__composer
volumes:
- .:/app
working_dir: /app
server:
container_name: test__server
environment:
- ENVIRONMENT=test
build: .
ports:
- "8080:8080"
depends_on:
- composer
links:
- composer
volumes:
- ./:/var/www/html
test:
image: phpunit/phpunit:6.0.6
container_name: test__phpunit
volumes:
- .:/app
working_dir: /app
depends_on:
- server
links:
- server
command: "-c ./Test/phpunit.xml --testdox"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment