-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.06 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: app
POSTGRES_USER: app
POSTGRES_PASSWORD: app
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U app -d app"]
interval: 5s
timeout: 3s
retries: 20
mock-api:
build: .
command: uvicorn mock_service.app.main:app --host 0.0.0.0 --port 8000
environment:
POSTGRES_DSN: postgresql://app:app@postgres:5432/app
AUTH_TOKEN: local-secret-token
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 20
test-runner:
build: .
command: python -m runner run --suite smoke --env configs/env.docker.yaml --reports-dir reports
environment:
PYTHONPATH: /app
volumes:
- ./reports:/app/reports
depends_on:
postgres:
condition: service_healthy
mock-api:
condition: service_healthy