forked from Swiftyos/AgentProbe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (55 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
57 lines (55 loc) · 2.03 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
services:
agentprobe:
build: .
ports:
- "127.0.0.1:7878:7878"
environment:
AGENTPROBE_SERVER_TOKEN: ${AGENTPROBE_SERVER_TOKEN:?set AGENTPROBE_SERVER_TOKEN}
AGENTPROBE_SERVER_CORS_ORIGINS: ${AGENTPROBE_SERVER_CORS_ORIGINS:?set AGENTPROBE_SERVER_CORS_ORIGINS}
OPEN_ROUTER_API_KEY: ${OPEN_ROUTER_API_KEY:?set OPEN_ROUTER_API_KEY}
AGENTPROBE_SERVER_DATA: /app/data
# Default backend is SQLite persisted on the named volume below.
# To switch to Postgres, set AGENTPROBE_DB_URL and AGENTPROBE_ENCRYPTION_KEY,
# then run `bun src/cli/main.ts db:migrate` before starting this service.
# Postgres supports run recording, presets, settings, overrides, and reads.
AGENTPROBE_SERVER_DB: /app/.agentprobe/runs.sqlite3
# AGENTPROBE_DB_URL: postgres://agentprobe:agentprobe@postgres:5432/agentprobe
# AGENTPROBE_ENCRYPTION_KEY: ${AGENTPROBE_ENCRYPTION_KEY:?set AGENTPROBE_ENCRYPTION_KEY}
AGENTPROBE_SERVER_DASHBOARD_DIST: /app/dashboard/dist
AGENTPROBE_SERVER_LOG_FORMAT: json
volumes:
- ./data:/app/data:ro
- agentprobe-sqlite:/app/.agentprobe
healthcheck:
test:
[
"CMD",
"bun",
"-e",
"fetch('http://127.0.0.1:7878/readyz').then((r) => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))",
]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
# depends_on:
# postgres:
# condition: service_healthy
# Optional production-style backend for durable run history. The agentprobe
# service keeps SQLite by default until AGENTPROBE_DB_URL is set.
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: agentprobe
POSTGRES_PASSWORD: agentprobe
POSTGRES_DB: agentprobe
volumes:
- agentprobe-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentprobe -d agentprobe"]
interval: 5s
timeout: 3s
retries: 10
volumes:
agentprobe-sqlite:
agentprobe-postgres: