-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.tests.yml
60 lines (54 loc) · 1.16 KB
/
docker-compose.tests.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
services:
testserver:
extends:
file: docker-compose.yml
service: server-base
environment:
WP_UPSTREAM: testfpm
links:
- testfpm
testfpm:
extends:
file: docker-compose.yml
service: fpm-base
environment:
DB_HOST: testdb
WP_HOME: http://testserver
WP_SITEURL: http://testserver/wp
depends_on:
- testdb
volumes:
- test_mysql_data:/var/lib/mysql
- ./docker/mariadb/initdb.d:/docker-entrypoint-initdb.d
testdb:
extends:
file: docker-compose.yml
service: db-base
codecept:
build:
context: ./docker/php
target: phpqa
args:
PHP_VERSION: ${PHP_VERSION}
depends_on:
- chrome
volumes:
- ./:/app
entrypoint: ["/app/vendor/bin/codecept"]
selenium-hub:
image: selenium/hub
chrome:
image: selenium/node-chrome
shm_size: '2gb'
volumes:
- /dev/shm:/dev/shm
- ./:/app
depends_on:
- selenium-hub
- testserver
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
volumes:
test_mysql_data: