-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
41 lines (37 loc) · 1.05 KB
/
Copy pathdocker-compose.postgres.yml
File metadata and controls
41 lines (37 loc) · 1.05 KB
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
version: "3.9"
services:
postgres:
image: pgvector/pgvector:0.7.0-pg16
environment:
- POSTGRES_DB=${POSTGRES_DB:-embedbase}
- POSTGRES_USER=${POSTGRES_USER:-embedbase}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-embedbase}"]
interval: 10s
timeout: 5s
retries: 5
networks: [embedbase_net]
api:
depends_on:
postgres:
condition: service_healthy
environment:
- VECTOR_STORE=pgvector
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${POSTGRES_DB:-embedbase}
- POSTGRES_USER=${POSTGRES_USER:-embedbase}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
worker:
environment:
- VECTOR_STORE=pgvector
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${POSTGRES_DB:-embedbase}
- POSTGRES_USER=${POSTGRES_USER:-embedbase}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
postgres_data: