-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
106 lines (101 loc) · 2.67 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
106 lines (101 loc) · 2.67 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
SKIP_MODEL_BUILD: "1"
ports:
- "${APP_PORT:-1906}:${UAR_SERVER__PORT:-1906}"
- "50051:50051"
environment:
# Database
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/uar
- SURREAL_URL=ws://surreal:8000/rpc
- REDIS_URL=redis://redis:6379
# Persistence
- UAR_PERSISTENCE__PROVIDER=postgres
- UAR_PERSISTENCE__DATABASE_URL=postgres://postgres:postgres@postgres:5432/uar
- UAR_SERVER__PORT=${UAR_SERVER__PORT:-1906}
# LLM (override via .env or shell env)
- LLM_PROTOCOL=${LLM_PROTOCOL:-auto}
- LLM_BASE_URL=${LLM_BASE_URL:-https://api.openai.com}
- LLM_API_KEY=${LLM_API_KEY}
- LLM_MODEL=${LLM_MODEL:-gpt-4o}
# MCP tools
- TAVILY_API_KEY=${TAVILY_API_KEY}
# Logging
- RUST_LOG=debug
depends_on:
postgres:
condition: service_healthy
surreal:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:$${UAR_SERVER__PORT:-1906}/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- uar_data_dev:/data
networks:
- uar-network
postgres:
image: pgvector/pgvector:pg17
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=uar
volumes:
- postgres_data_dev:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d uar" ]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
networks:
- uar-network
surreal:
image: surrealdb/surrealdb:v3.3.0@sha256:681c6c22c287421b5c7d99e0fde79b6e0d32c36c1ddeaab2762a1661cb04cd20
ports:
- "8000:8000"
command: start --log trace --user root --pass root --bind 0.0.0.0:8000 file://data/surreal.db
volumes:
- surreal_data_dev:/data
healthcheck:
test: [ "CMD-SHELL", "curl -sf http://localhost:8000/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
networks:
- uar-network
redis:
image: redis/redis-stack:latest
ports:
- "6379:6379"
- "8001:8001" # RedisInsight
volumes:
- redis_data_dev:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s
networks:
- uar-network
networks:
uar-network:
driver: bridge
volumes:
uar_data_dev:
postgres_data_dev:
surreal_data_dev:
redis_data_dev: