-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yml
48 lines (46 loc) · 1.12 KB
/
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
services:
mysql:
image: mysql:lts
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress_test
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-p$$MYSQL_ROOT_PASSWORD",
]
timeout: 2s
retries: 30
test:
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION}
WC_VERSION: ${WC_VERSION}
WP_VERSION: ${WP_VERSION}
user: ${UID:-1000}:${GID:-1000}
depends_on:
mysql:
condition: service_healthy
volumes:
- ./src:/home/phpuser
- /home/phpuser/vendor # do not mount vendor inside container
environment:
WP_TEST_DATABASE_NAME: wordpress_test
WP_TEST_DATABASE_USER: root
WP_TEST_DATABASE_PASSWORD: root
WP_TEST_DATABASE_HOST: mysql
entrypoint: ./bin/entrypoint.sh
php5-6:
build:
context: ./
dockerfile: Dockerfile.legacy
volumes:
- ./:/home/phpuser
- /home/phpuser/src/vendor # do not mount vendor inside container
environment:
PATH_TO_COMPOSER: /usr/bin/composer