-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcompose.yml
More file actions
60 lines (60 loc) · 1.31 KB
/
compose.yml
File metadata and controls
60 lines (60 loc) · 1.31 KB
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
services:
website:
build:
context: .
args:
- PHP_VERSION=${PHP_VERSION:-8.3}
profiles: [website]
environment:
- XDEBUG_MODE=debug
- XDEBUG_CONFIG="client_host=host.docker.internal"
working_dir: "/app/website"
command: ["php", "-S", "0.0.0.0:80", "-t", "/app/website/web"]
volumes:
- .:/app
ports:
- "8888:80"
depends_on:
- install
install:
build:
context: .
args:
- PHP_VERSION=${PHP_VERSION:-8.3}
profiles: [website]
working_dir: "/app"
command: ["composer", "install"]
volumes:
- .:/app
test:
build:
context: .
args:
- PHP_VERSION=${PHP_VERSION:-8.3}
profiles: [website]
working_dir: "/app"
command: ["php", "vendor/bin/codecept", "run"]
volumes:
- .:/app
test-website:
build:
context: .
args:
- PHP_VERSION=${PHP_VERSION:-8.3}
profiles: [website]
working_dir: "/app/tests/_data"
command: ["php", "-S", "0.0.0.0:80", "-t", "/app/tests/_data/web"]
volumes:
- .:/app
ports:
- "8888:80"
bash:
build:
context: .
args:
- PHP_VERSION=${PHP_VERSION:-8.3}
profiles: [website]
working_dir: "/app"
command: ["bash"]
volumes:
- .:/app