-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.yml
97 lines (92 loc) · 2.24 KB
/
docker-compose.yml
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
version: "3.8"
services:
ui:
build:
context: ./apps/ui
dockerfile: docker/Dockerfile
ports:
- "3000:3000"
volumes:
- ./apps/ui:/app
- /app/node_modules
server:
build:
context: ./apps/server
dockerfile: docker/Dockerfile
volumes:
- ./apps/server:/code
ports:
- "4000:4000"
depends_on:
- db
db:
image: postgres:14
restart: always
environment:
POSTGRES_DB: l3-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGPORT: 5434
ports:
- "5434:5434"
volumes:
- l3_db_data:/var/lib/postgresql/data
zep_db:
image: ghcr.io/getzep/postgres:latest
restart: on-failure
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- zep_db_data:/var/lib/postgresql/data
zep_nlp:
image: ghcr.io/getzep/zep-nlp-server:latest
env_file:
- ./zep/.env
restart: on-failure
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/5557' || exit 1
interval: 10s
timeout: 5s
retries: 5
start_period: 45s
ports:
- "5557:5557"
zep:
image: ghcr.io/getzep/zep:latest
restart: on-failure
depends_on:
zep_db:
condition: service_healthy
zep_nlp:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- ./zep/.env:/app/.env
- ./zep/config.yaml:/app/config.yaml
environment:
- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@zep_db:5432/postgres?sslmode=disable
- ZEP_NLP_SERVER_URL=http://zep_nlp:5557
- ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_SERVICE=openai
- ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_DIMENSIONS=1536
- ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_SERVICE=openai
- ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_DIMENSIONS=1536
env_file:
- ./zep/.env
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1
interval: 5s
timeout: 10s
retries: 3
start_period: 40s
volumes:
l3_db_data:
zep_db_data: