-
-
Notifications
You must be signed in to change notification settings - Fork 751
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (73 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
81 lines (73 loc) · 1.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
test-rest:
<<: &test-service
build: ..
entrypoint: /codecept/node_modules/.bin/mocha
working_dir: /codecept
env_file: .env
volumes:
- ..:/codecept
- node_modules:/codecept/node_modules
command: test/rest
depends_on:
- json_server
test-acceptance.webdriverio:
build: ..
env_file: .env
environment:
- CODECEPT_ARGS=-c codecept.WebDriver.js --grep @WebDriverIO --debug
depends_on:
- php
- selenium.chrome
volumes:
- ./acceptance:/tests
- ./data:/data
- ./support:/support
- node_modules:/node_modules
test-acceptance.puppeteer:
build: ..
env_file: .env
environment:
- CODECEPT_ARGS=-c codecept.Puppeteer.js --grep @Puppeteer
- PPT_VERSION=$PPT_VERSION
depends_on:
- php
- puppeteer-image
volumes:
- ./acceptance:/tests
- ./data:/data
- ./support:/support
- node_modules:/node_modules
test-bdd.faker:
build: ..
env_file: .env
environment:
- CODECEPT_ARGS=-c codecept.faker.js
volumes:
- ./bdd:/tests
- ./data:/data
- ./support:/support
- node_modules:/node_modules
selenium.chrome:
image: selenium/standalone-chrome:4.26
shm_size: 2g
ports:
- 4444:4444
php:
image: php:7.0
command: php -S 0.0.0.0:8000 -t /test/data/app
ports:
- 8000:8000
volumes:
- .:/test
json_server:
<<: *test-service
entrypoint: []
command: npm run json-server
ports:
- '8010:8010' # Expose to host
restart: always # Automatically restart the container if it fails or becomes unhealthy
puppeteer-image:
image: ghcr.io/puppeteer/puppeteer:22.4.1
volumes:
node_modules: