-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.tests.yml
63 lines (57 loc) · 1.33 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
61
62
63
# Development project infrastructure generated over the Docker
services:
# MySQL
testdb:
extends:
file: common-services.yml
service: db
volumes:
- test_mysql_data:/var/lib/mysql:z
# Nginx
testserver:
extends:
file: common-services.yml
service: server
environment:
WORDPRESS: testwordpress
links: !override
- testwordpress
volumes:
- ./environment/docker/nginx/etc/nginx.conf:/etc/nginx/nginx.conf:z
- ./environment/docker/nginx/etc/templates:/etc/nginx/templates:z
# PHP-FPM with WP dependencies
testwordpress:
extends:
file: common-services.yml
service: wordpress
environment:
DB_HOST: testdb
WP_HOME: http://testserver
WP_SITEURL: http://testserver/wp
depends_on:
- testdb
# Codecept
codecept:
extends:
file: common-services.yml
service: codecept
depends_on:
- chrome
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:
name: ${VOLUME_PREFIX}test_mysql_data