forked from letta-ai/letta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-compose.yaml
42 lines (42 loc) · 1.22 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
services:
memgpt_db:
image: ankane/pgvector:v0.5.1
networks:
default:
aliases:
- pgvector_db
- memgpt-db
environment:
- POSTGRES_USER=${MEMGPT_PG_USER}
- POSTGRES_PASSWORD=${MEMGPT_PG_PASSWORD}
- POSTGRES_DB=${MEMGPT_PG_DB}
volumes:
- ./.persist/pgdata-test:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
memgpt_server:
#image: memgpt/memgpt-server:latest
image: memgpt-server
hostname: memgpt-server
build:
context: .
dockerfile: Dockerfile
target: runtime
depends_on:
- memgpt_db
ports:
- "8083:8083"
- "8283:8283"
environment:
- MEMGPT_SERVER_PASS=${MEMGPT_SERVER_PASS} # memgpt server password
- MEMGPT_PG_DB=${MEMGPT_PG_DB}
- MEMGPT_PG_USER=${MEMGPT_PG_USER}
- MEMGPT_PG_PASSWORD=${MEMGPT_PG_PASSWORD}
- MEMGPT_PG_HOST=pgvector_db
- MEMGPT_PG_PORT=5432
- OPENAI_API_KEY=${OPENAI_API_KEY}
- SERPAPI_API_KEY=${SERPAPI_API_KEY}
volumes:
- ./configs/server_config.yaml:/root/.memgpt/config # config file
# ~/.memgpt/credentials:/root/.memgpt/credentials # credentials file