-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
94 lines (89 loc) · 2.93 KB
/
docker-compose.e2e.yml
File metadata and controls
94 lines (89 loc) · 2.93 KB
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
services:
db:
image: mysql:8.0
platform: linux/amd64
container_name: breeze_e2e_db
security_opt:
- apparmor:unconfined
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: breeze_test
ports:
- "3307:3306"
volumes:
- breeze_e2e_db_data:/var/lib/mysql
- ./e2e/api/initdb.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -u root -p$$MYSQL_ROOT_PASSWORD --silent"]
interval: 10s
timeout: 5s
retries: 20
start_period: 120s
api:
build:
context: ./e2e/api
dockerfile: Dockerfile
container_name: breeze_e2e_api
working_dir: /app
volumes:
- ./e2e/api:/app
ports:
- "8080:8000"
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf 'http://127.0.0.1:8000/?action=breezeStatus&sa=profile&sc=test' >/dev/null || exit 1"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
app:
build:
context: .
dockerfile: Dockerfile.app
container_name: breeze_e2e_app
ports:
- "3001:3000"
environment:
VITE_APP_DEV_URL: "http://api:8000/index.php"
VITE_APP_DEV_THEME_URL: "/images"
VITE_APP_DEV_SESSION_VAR: "sc"
VITE_APP_DEV_SESSION_ID: "e2e_session"
VITE_APP_DEV_USER_ID: "1"
VITE_APP_DEV_WALL_ID: "1"
VITE_APP_DEV_IS_CURRENT_USER_OWNER: "true"
VITE_APP_DEV_USE_MOOD: "false"
VITE_APP_DEV_TEXT_TABS: '{"wall":"Wall","about":"About me","activity":"Recent activity"}'
VITE_APP_DEV_TEXT_ERROR: '{"wrongValues":"Wrong values were sent","errorEmpty":"You need to type something!","noStatus":"No status to display","generic":"There was an error"}'
VITE_APP_DEV_TEXT_LIKE: '{"like":"Like","unlike":"Unlike"}'
VITE_APP_DEV_TEXT: '{"deletedStatus":"Your status has been deleted","deletedComment":"Your comment was deleted!","save":"Save","delete":"Delete","editing":"Editing","close":"Close","cancel":"Cancel","send":"Send","preview":"Preview","previewing":"Previewing","end":"No more status to display","loadMore":"Load more","goUp":"Go Up","emptyData":"No data available"}'
VITE_APP_DEV_OWNER_SETTINGS: ""
depends_on:
db:
condition: service_healthy
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
e2e:
build:
context: ./e2e
dockerfile: Dockerfile
container_name: breeze_e2e_runner
environment:
BASE_URL: "http://app:3000"
depends_on:
app:
condition: service_healthy
volumes:
- ./e2e/playwright.config.ts:/e2e/playwright.config.ts:ro
- ./e2e/tests:/e2e/tests
- ./e2e/playwright-report:/e2e/playwright-report
- ./e2e/test-results:/e2e/test-results
volumes:
breeze_e2e_db_data: