-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
52 lines (49 loc) · 1.73 KB
/
docker-compose.test.yml
File metadata and controls
52 lines (49 loc) · 1.73 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
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: test1234
POSTGRES_DB: lg_template_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
api:
image: ${API_IMAGE:-ghcr.io/ruska-ai/orchestra-api:latest}
depends_on:
postgres: { condition: service_healthy }
redis: { condition: service_healthy }
environment:
APP_ENV: test
POSTGRES_CONNECTION_STRING: postgresql://admin:test1234@postgres:5432/lg_template_test
REDIS_URL: redis://redis:6379/0
ports: ["8000:8000"]
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/info', timeout=5).read()"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
worker:
image: ${WORKER_IMAGE:-ghcr.io/ruska-ai/orchestra-worker:latest}
depends_on:
api: { condition: service_healthy }
redis: { condition: service_healthy }
environment:
DISTRIBUTED_WORKERS: "true"
POSTGRES_CONNECTION_STRING: postgresql://admin:test1234@postgres:5432/lg_template_test
REDIS_URL: redis://redis:6379/0
healthcheck:
test: ["CMD", "pgrep", "-f", "taskiq"]
interval: 10s
timeout: 5s
retries: 5