1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
volumes:
shared:
services:
phpdoc:
image: phpdoc/phpdoc:3
volumes:
- ".:/data:ro"
- "./docs/:/data/docs"
command:
- "--cache-folder=/tmp"
beanstalk-unix:
image: ghcr.io/sammousa/beanstalkd:latest
entrypoint:
- /usr/bin/beanstalkd
- -l
- unix:/shared/beanstalkd.sock
volumes:
- type: volume
source: shared
target: /shared
beanstalk:
image: ghcr.io/sammousa/beanstalkd:latest
phpunit:
build:
context: ./dockerfiles
dockerfile: Dockerfile-phpunit
args:
PHP_VERSION: "${PHP_VERSION:-8.3}"
environment:
SERVER_HOST: beanstalk
UNIX_SERVER_HOST: unix:///shared/beanstalkd.sock
depends_on:
- beanstalk
- beanstalk-unix
volumes:
- type: volume
source: shared
target: /shared
- ./:/app:ro
- ./.phpunit.cache:/app/.phpunit.cache:rw
- ./tests/coverage:/coverage:rw
command:
- --coverage-clover
- /coverage/coverage.xml
- --coverage-html
- /coverage
|