forked from versionpress/versionpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (85 loc) · 2.64 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
version: '3.6'
services:
wordpress:
image: versionpress/wordpress:php7.2-apache
ports:
- "80:80"
volumes:
- ./plugins/versionpress:/var/www/html/wp-content/plugins/versionpress
- ./dev-env/wp:/var/www/html
links:
- mysql
- adminer
environment:
WORDPRESS_DB_PASSWORD: r00tpwd
wordpress-for-tests:
image: versionpress/wordpress:php7.2-apache
ports:
- "80:80"
volumes:
- ./dev-env/wp-for-tests:/var/www/html
links:
- mysql-for-tests:mysql
working_dir: /var/www/html/wptest
environment:
WORDPRESS_DB_PASSWORD: r00tpwd
mysql:
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: r00tpwd
mysql-for-tests:
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- db_data_for_tests:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: r00tpwd
adminer:
image: adminer
ports:
- "8099:8080"
# See `tests-with-wordpress` for a service that also starts WordPress.
tests:
image: versionpress/wordpress:cli
environment:
VP_DIR: /opt/versionpress
VP_TESTS_LOG_DIR: /var/opt/versionpress/logs/.tracy
PHP_IDE_CONFIG: serverName=VersionPress-tests
volumes:
# !!! This must be kept in sync with wordpress-cli-image/Dockerfile
- ./dev-env/test-logs:/var/opt/versionpress/logs
- ./plugins/versionpress:/opt/versionpress:ro
- ./ext-libs:/opt/ext-libs:ro
- wpcli-cache:/var/www/.wp-cli
working_dir: /opt/versionpress/tests
command: ../vendor/bin/phpunit --verbose --colors -c phpunit.xml --testdox-text /var/opt/versionpress/logs/testdox.txt
tests-with-wordpress:
image: versionpress/wordpress:cli
environment:
VP_DIR: /opt/versionpress
VP_TESTS_LOG_DIR: /var/opt/versionpress/logs/.tracy
PHP_IDE_CONFIG: serverName=VersionPress-tests
volumes:
# !!! This must be kept in sync with wordpress-cli-image/Dockerfile
- ./dev-env/wp-for-tests:/var/www/html
- ./dev-env/test-logs:/var/opt/versionpress/logs
- ./plugins/versionpress:/opt/versionpress:ro
- ./ext-libs:/opt/ext-libs:ro
- wpcli-cache:/var/www/.wp-cli
working_dir: /opt/versionpress/tests
command: ../vendor/bin/phpunit --verbose --colors -c phpunit.xml --testdox-text /var/opt/versionpress/logs/testdox.txt
links:
- selenium-hub
- wordpress-for-tests
selenium-hub:
# Standalone Firefox is enough but could also be a full grid setup, hence the service name
image: selenium/standalone-firefox
volumes:
db_data:
db_data_for_tests:
wpcli-cache: