forked from devfullcycle/mba-ia-niv-introducao-langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
33 lines (31 loc) · 811 Bytes
/
docker-compose.yaml
File metadata and controls
33 lines (31 loc) · 811 Bytes
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
services:
postgres:
image: pgvector/pgvector:pg17
container_name: postgres_rag
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: rag
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d rag"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
bootstrap_vector_ext:
image: pgvector/pgvector:pg17
depends_on:
postgres:
condition: service_healthy
entrypoint: ["/bin/sh", "-c"]
command: >
PGPASSWORD=postgres
psql "postgresql://postgres@postgres:5432/rag" -v ON_ERROR_STOP=1
-c "CREATE EXTENSION IF NOT EXISTS vector;"
restart: "no"
volumes:
postgres_data: