-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
68 lines (65 loc) · 1.62 KB
/
docker-compose.e2e.yml
File metadata and controls
68 lines (65 loc) · 1.62 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
services:
anvil:
image: ghcr.io/foundry-rs/foundry:latest
entrypoint: ["anvil"]
command: ["--host", "0.0.0.0"]
ports:
- "8545:8545"
healthcheck:
test: ["CMD", "cast", "bn", "--rpc-url", "http://localhost:8545"]
interval: 3s
timeout: 3s
retries: 5
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: testudo
POSTGRES_PASSWORD: testudo_test
POSTGRES_DB: testudo_test
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testudo -d testudo_test"]
interval: 5s
timeout: 5s
retries: 5
testudo-api:
build:
context: ../testudo-api
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
DATABASE_URL: postgresql://testudo:testudo_test@postgres:5432/testudo_test
DATABASE_SSL: "false"
API_KEYS: "e2e-test-key"
PORT: "3001"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/health"]
interval: 5s
timeout: 5s
retries: 10
selenium:
image: selenium/standalone-chromium:latest
platform: linux/amd64
ports:
- "4444:4444"
- "5900:5900"
- "7900:7900"
environment:
SE_NODE_MAX_SESSIONS: "1"
SE_VNC_NO_PASSWORD: "1"
shm_size: "2gb"
depends_on:
anvil:
condition: service_healthy
testudo-api:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
interval: 10s
timeout: 5s
retries: 10