-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
115 lines (109 loc) · 2.77 KB
/
docker-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
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
107
108
109
110
111
112
113
114
version: "3.7"
services:
db:
image: ghcr.io/getzep/postgres:latest
container_name: zep-postgres
restart: on-failure
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
build:
context: zep
dockerfile: Dockerfile.postgres
networks:
- zep-network
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
nlp:
image: ghcr.io/getzep/zep-nlp-server:latest
container_name: zep-nlp
env_file:
- zep/.env # You can set your embedding-related variables here
restart: on-failure
networks:
- zep-network
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
container_name: zep
restart: on-failure
depends_on:
db:
condition: service_healthy
nlp:
condition: service_healthy
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "8000:8000"
volumes:
- ./zep/config.yaml:/app/config.yaml
environment:
- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@db:5432/postgres?sslmode=disable
- ZEP_NLP_SERVER_URL=http://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 # Store your OpenAI API key here as ZEP_OPENAI_API_KEY
build:
context: zep
dockerfile: Dockerfile
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1
interval: 5s
timeout: 10s
retries: 3
start_period: 40s
networks:
- zep-network
seed_zep:
container_name: zep-seeder
restart: no
depends_on:
zep:
condition: service_healthy
build:
context: zep/setup
dockerfile: Dockerfile
extra_hosts:
- host.docker.internal:host-gateway
environment:
- ZEP_API_URL=http://host.docker.internal:8000
volumes:
- ./documents:/app/documents
networks:
- zep-network
web:
container_name: web-app
restart: on-failure
depends_on:
zep:
condition: service_healthy
build:
context: web
dockerfile: Dockerfile
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "3000:3000"
environment:
- ZEP_SERVER_URL=http://host.docker.internal:8000
networks:
- zep-network
networks:
zep-network:
driver: bridge