forked from letta-ai/letta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-compose.yaml
45 lines (45 loc) · 1.43 KB
/
dev-compose.yaml
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
services:
letta_db:
image: ankane/pgvector:v0.5.1
networks:
default:
aliases:
- pgvector_db
- letta-db
environment:
- POSTGRES_USER=${LETTA_PG_USER:-letta}
- POSTGRES_PASSWORD=${LETTA_PG_PASSWORD:-letta}
- POSTGRES_DB=${LETTA_PG_DB:-letta}
volumes:
- ./.persist/pgdata-test:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
letta_server:
image: lettaai/letta:lates
hostname: letta
build:
context: .
dockerfile: Dockerfile
target: runtime
depends_on:
- letta_db
ports:
- "8083:8083"
- "8283:8283"
environment:
- LETTA_PG_DB=${LETTA_PG_DB:-letta}
- LETTA_PG_USER=${LETTA_PG_USER:-letta}
- LETTA_PG_PASSWORD=${LETTA_PG_PASSWORD:-letta}
- LETTA_PG_HOST=pgvector_db
- LETTA_PG_PORT=5432
- LETTA_LLM_ENDPOINT=${LETTA_LLM_ENDPOINT}
- LETTA_LLM_ENDPOINT_TYPE=${LETTA_LLM_ENDPOINT_TYPE}
- LETTA_LLM_MODEL=${LETTA_LLM_MODEL:-gpt-4}
- LETTA_LLM_CONTEXT_WINDOW=${LETTA_LLM_CONTEXT_WINDOW:-None}
- LETTA_EMBEDDING_ENDPOINT=${LETTA_EMBEDDING_ENDPOINT}
- LETTA_EMBEDDING_ENDPOINT_TYPE=${LETTA_EMBEDDING_ENDPOINT_TYPE}
- LETTA_EMBEDDING_DIM=${LETTA_EMBEDDING_DIM:-None}
- LETTA_EMBEDDING_MODEL=${LETTA_EMBEDDING_MODEL}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- SERPAPI_API_KEY=${SERPAPI_API_KEY}