-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (76 loc) · 2.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
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
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: agentguard
POSTGRES_USER: agentguard
POSTGRES_PASSWORD: dev-password
ports:
- "5432:5432"
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentguard"]
interval: 5s
timeout: 5s
retries: 5
clickhouse:
image: clickhouse/clickhouse-server:24.3
ports:
- "8123:8123"
- "9000:9000"
volumes:
- ch-data:/var/lib/clickhouse
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
interval: 5s
timeout: 5s
retries: 5
core:
build:
context: ..
dockerfile: docker/Dockerfile.core
ports:
- "8000:8000"
environment:
AGENTGUARD_DATABASE_URL: postgresql+asyncpg://agentguard:dev-password@postgres:5432/agentguard
AGENTGUARD_CLICKHOUSE_HOST: clickhouse
AGENTGUARD_LLM_PROVIDER: openai
AGENTGUARD_OPENAI_API_KEY: ${OPENAI_API_KEY:-}
AGENTGUARD_ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
proxy:
build:
context: ..
dockerfile: docker/Dockerfile.proxy
ports:
- "8080:8080"
environment:
AGENTGUARD_PROXY_CORE_ENGINE_URL: http://core:8000
AGENTGUARD_PROXY_UPSTREAM_URL: ${UPSTREAM_TOOL_SERVICE:-http://host.docker.internal:9000}
AGENTGUARD_PROXY_PORT: "8080"
depends_on:
- core
console-backend:
build:
context: ..
dockerfile: docker/Dockerfile.console
ports:
- "8100:8100"
environment:
AGENTGUARD_CONSOLE_DATABASE_URL: postgresql+asyncpg://agentguard:dev-password@postgres:5432/agentguard
AGENTGUARD_CONSOLE_CLICKHOUSE_HOST: clickhouse
AGENTGUARD_CONSOLE_PORT: "8100"
AGENTGUARD_CONSOLE_CORE_API_URL: http://core:8000
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
volumes:
pg-data:
ch-data: