-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathphpunit-compose.yml
39 lines (35 loc) · 915 Bytes
/
phpunit-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
version: "2.4"
# See https://github.com/UoGSoE/docker-stuff for the origins of this file
services:
phpunit:
build:
context: .
dockerfile: phpunit.Dockerfile
args:
PHP_VERSION: 7.3
depends_on:
mysql:
condition: service_healthy
tmpfs:
- /var/www/html/storage/logs
- /var/www/html/storage/framework/cache
environment:
DB_CONNECTION: mysql
DB_HOST: mysql
DB_DATABASE: homestead
DB_USERNAME: homestead
DB_PASSWORD: secret
volumes:
- .:/var/www/html:delegated
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
healthcheck:
test: /usr/bin/mysql --host=127.0.0.1 --user=homestead --password=secret --silent --execute \"SELECT 1;\"
interval: 3s
timeout: 20s
retries: 5