Skip to content

Commit a220599

Browse files
authored
update docker-compose file (#186)
1 parent 2b37808 commit a220599

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

Diff for: docker-compose.yml

+3-26
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,9 @@
1-
# Use to test langchain-postgres
2-
version: "3"
31
name: langchain-postgres
42

53
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
264
pgvector:
275
# postgres with the pgvector extension
28-
image: ankane/pgvector
6+
image: pgvector/pgvector:pg16
297
environment:
308
POSTGRES_DB: langchain
319
POSTGRES_USER: langchain
@@ -43,8 +21,7 @@ services:
4321
interval: 5s
4422
retries: 60
4523
volumes:
46-
- postgres_data_pgvector:/var/lib/postgresql/data
24+
- postgres_data_pgvector_16:/var/lib/postgresql/data
4725

4826
volumes:
49-
postgres_data:
50-
postgres_data_pgvector:
27+
postgres_data_pgvector_16:

0 commit comments

Comments
 (0)