-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 901 Bytes
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
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: e2e_testing_platform
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-ppassword"]
interval: 10s
timeout: 5s
retries: 6
volumes:
- mysql_data:/var/lib/mysql
app:
build: .
depends_on:
mysql:
condition: service_healthy
environment:
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: e2e_testing_platform
DB_USERNAME: root
DB_PASSWORD: password
ports:
- "8000:8000" # Laravel app
- "8080:8080" # Allure report
volumes:
- ./storage/logs:/app/storage/logs # persist test logs
- ./allure-results:/app/allure-results # persist raw Allure data
- ./allure-report:/app/allure-report # persist generated report
volumes:
mysql_data: