File tree 1 file changed +3
-26
lines changed
1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 1
- # Use to test langchain-postgres
2
- version : " 3"
3
1
name : langchain-postgres
4
2
5
3
services :
6
- postgres :
7
- image : postgres:16
8
- environment :
9
- POSTGRES_DB : langchain
10
- POSTGRES_USER : langchain
11
- POSTGRES_PASSWORD : langchain
12
- ports :
13
- - " 6023:5432"
14
- command : |
15
- postgres -c log_statement=all
16
- healthcheck :
17
- test :
18
- [
19
- " CMD-SHELL" ,
20
- " psql postgresql://langchain:langchain@localhost/langchain --command 'SELECT 1;' || exit 1" ,
21
- ]
22
- interval : 5s
23
- retries : 60
24
- volumes :
25
- - postgres_data:/var/lib/postgresql/data
26
4
pgvector :
27
5
# postgres with the pgvector extension
28
- image : ankane /pgvector
6
+ image : pgvector /pgvector:pg16
29
7
environment :
30
8
POSTGRES_DB : langchain
31
9
POSTGRES_USER : langchain
@@ -43,8 +21,7 @@ services:
43
21
interval : 5s
44
22
retries : 60
45
23
volumes :
46
- - postgres_data_pgvector :/var/lib/postgresql/data
24
+ - postgres_data_pgvector_16 :/var/lib/postgresql/data
47
25
48
26
volumes :
49
- postgres_data :
50
- postgres_data_pgvector :
27
+ postgres_data_pgvector_16 :
You can’t perform that action at this time.
0 commit comments