-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_e2e.yaml
More file actions
63 lines (63 loc) · 1.47 KB
/
run_e2e.yaml
File metadata and controls
63 lines (63 loc) · 1.47 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
services:
postgres:
build:
context: .
dockerfile: e2e/Dockerfile.postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
expose:
- 5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
typesense:
build:
context: .
dockerfile: e2e/Dockerfile.typesense
environment:
TYPESENSE_API_KEY: 'xyz'
TYPESENSE_DATA_DIR: /tmp
expose:
- 8108
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8108/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: e2e/Dockerfile.app
expose:
- 3001
environment:
PG_URI: postgres://postgres:postgres@postgres:5432/testdb
NODE_ENV: test
TYPESENSE_HOST: typesense
TYPESENSE_PORT: 8108
TYPESENSE_API_KEY: xyz
depends_on:
postgres:
condition: service_healthy
typesense:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3001/api/check-db-status || exit 1"]
interval: 10s
timeout: 5s
retries: 5
playwright:
build:
context: .
dockerfile: e2e/Dockerfile.playwright
environment:
BASE_URL: http://app:3001
TYPESENSE_PORT: 8108
TYPESENSE_API_KEY: xyz
depends_on:
app:
condition: service_healthy