-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
122 lines (112 loc) · 3.39 KB
/
docker-compose.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.8"
x-env-aliases:
- &DEFAULT_BUILD_ARGS
PHP_TAG: "${PHP_VERSION:-8.0}-cli-alpine${ALPINE_VERSION:-3.16}"
PHP_API_VERSION: "${PHP_API_VERSION:-20200930}"
COMPOSER_ARGS: "${COMPOSER_ARGS:-install}"
COMPOSER_AUTH: "${COMPOSER_AUTH:-}"
SWOOLE_VERSION: "${SWOOLE_VERSION:-4.12.1}"
COMPOSER_TAG: "${COMPOSER_TAG:-2.5.2}"
XDEBUG_TAG: "${XDEBUG_TAG:-3.2.0}"
volumes:
coverage: {}
services:
releaser:
image: "docker.io/pixelfederation/release-version-script:latest"
environment:
DEBUG: "${DEBUG:-0}"
DRY_RUN: "${DRY_RUN:-1}"
GH_REPOSITORY: "${GH_REPOSITORY:-pixelfederation/swoole-bundle}"
GH_COMMITER_NAME: "${GH_COMMITER_NAME:-pf-releaser-bot}"
GH_COMMITER_EMAIL: "${GH_COMMITER_EMAIL:[email protected]}"
GH_TOKEN: "${GH_TOKEN:-xxxxxxxx}"
GH_RELEASE_DRAFT: "${GH_RELEASE_DRAFT:-false}"
GH_RELEASE_PRERELEASE: "${GH_RELEASE_PRERELEASE:-false}"
volumes:
- "./.git:/usr/src/app/.git:rw"
- "./CHANGELOG.md:/usr/src/app/CHANGELOG.md:rw"
cli:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-cli:${TAG:-local}"
container_name: swoole-bundle-cli
build:
context: .
target: cli
args:
<<: *DEFAULT_BUILD_ARGS
environment:
DATABASE_HOST: 'db'
ports:
- 9501:9501
composer:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-composer:${TAG:-local}"
build:
context: .
target: Composer
args:
<<: *DEFAULT_BUILD_ARGS
environment:
DATABASE_HOST: 'db'
coverage-xdebug:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-coverage-xdebug:${TAG:-local}"
build:
context: .
target: CoverageXdebug
args:
<<: *DEFAULT_BUILD_ARGS
environment:
DATABASE_HOST: 'db'
volumes:
- coverage:/usr/src/app/cov
coverage-pcov:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-coverage-pcov:${TAG:-local}"
build:
context: .
target: CoveragePcov
args:
<<: *DEFAULT_BUILD_ARGS
environment:
DATABASE_HOST: 'db'
volumes:
- coverage:/usr/src/app/cov
coverage-xdebug-feature-with-retry:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-coverage-xdebug:${TAG:-local}"
entrypoint:
- /bin/bash
command:
- tests/run-feature-tests-code-coverage.sh
build:
context: .
target: CoverageXdebug
args:
<<: *DEFAULT_BUILD_ARGS
environment:
DATABASE_HOST: 'db'
volumes:
- coverage:/usr/src/app/cov
merge-code-coverage:
image: "${REGISTRY:-docker.io}/${NAMESPACE:-pixelfederation}/${IMAGE:-swoole-bundle}-merge-code-coverage:${TAG:-local}"
command: merge-code-coverage
build:
context: .
target: MergeCodeCoverage
args:
<<: *DEFAULT_BUILD_ARGS
volumes:
- coverage:/usr/src/app/cov
coverage-volume-helper:
image: "alpine:${ALPINE_VERSION:-3.16}"
entrypoint: sleep
command: infinity
working_dir: /usr/src/app
volumes:
- coverage:/usr/src/app/cov
db:
container_name: swoole-bundle-db
image: mysql:8
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_DATABASE: db