-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 2.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (78 loc) · 2.42 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
name: pyro
services:
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: pyro
POSTGRES_USER: pyro
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
volumes:
- pyro-postgres:/var/lib/postgresql/data
ports:
- "127.0.0.1:55432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pyro -d pyro"]
interval: 5s
timeout: 3s
retries: 20
gateway:
build:
context: .
target: gateway
restart: unless-stopped
environment:
HOST: 0.0.0.0
PORT: 8080
DATABASE_URL: postgresql://pyro:${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}@postgres:5432/pyro
CONTROL_PLANE_SECRET: ${CONTROL_PLANE_SECRET:?Set CONTROL_PLANE_SECRET in .env}
TYPESAFE_API_KEY: ${TYPESAFE_API_KEY:-}
QUEUE_CONCURRENCY: ${QUEUE_CONCURRENCY:-16}
QUEUE_MAX_DEPTH: ${QUEUE_MAX_DEPTH:-1000}
CLASSIFICATION_TIMEOUT_MS: ${CLASSIFICATION_TIMEOUT_MS:-8000}
GATEWAY_API_KEY: ${GATEWAY_API_KEY:?Set GATEWAY_API_KEY in .env}
ports:
- "127.0.0.1:8080:8080"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/v1/health"]
interval: 5s
timeout: 2s
retries: 10
control-plane:
build:
context: .
target: control-plane
restart: unless-stopped
environment:
HOST: 0.0.0.0
PORT: 8081
DATABASE_URL: postgresql://pyro:${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}@postgres:5432/pyro
GATEWAY_INTERNAL_URL: http://gateway:8080
GATEWAY_API_KEY: ${GATEWAY_API_KEY:?Set GATEWAY_API_KEY in .env}
CONTROL_PLANE_SECRET: ${CONTROL_PLANE_SECRET:?Set CONTROL_PLANE_SECRET in .env}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?Set ADMIN_PASSWORD in .env}
TYPESAFE_API_KEY: ${TYPESAFE_API_KEY:-}
TYPESAFE_ENDPOINT: ${TYPESAFE_ENDPOINT:-https://api.typesafe.ai/v1/systemone}
TYPESAFE_MODEL: ${TYPESAFE_MODEL:-jev-latest}
ports:
- "127.0.0.1:8081:8081"
depends_on:
gateway:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8081/health"]
interval: 5s
timeout: 2s
retries: 10
dashboard:
build:
context: .
target: dashboard
restart: unless-stopped
ports:
- "127.0.0.1:3000:8080"
depends_on:
control-plane:
condition: service_healthy
volumes:
pyro-postgres: