-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
# PostgreSQL with pgvector
postgres:
image: pgvector/pgvector:pg16
container_name: proovy-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USERNAME:?DB_USERNAME not set}
POSTGRES_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD not set}
POSTGRES_DB: ${DB_NAME:-proovy}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
# Proovy AI Service
proovy-ai:
build:
context: .
dockerfile: Dockerfile
container_name: proovy-ai
restart: unless-stopped
environment:
- RAG_VECTORSTORE=pgvector
- PGVECTOR_HOST=postgres
- PGVECTOR_PORT=5432
- PGVECTOR_DB=${DB_NAME:-proovy}
- PGVECTOR_USER=${DB_USERNAME:?DB_USERNAME not set}
- PGVECTOR_PASSWORD=${DB_PASSWORD:?DB_PASSWORD not set}
- HOST=0.0.0.0
- PORT=8081
env_file:
- .env
ports:
- "8081:8081"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data: