File: docker-compose.yml

package info (click to toggle)
php-pda-pheanstalk 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 836 kB
  • sloc: php: 4,604; xml: 19; makefile: 14
file content (46 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download
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