Repository navigation
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
63 lines (59 loc) · 1.65 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
63 lines (59 loc) · 1.65 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
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
postgres:
image: pgvector/pgvector:pg16
container_name: vectorize_postgres
environment:
POSTGRES_DB: vectorize_db
POSTGRES_USER: vectorize_user
POSTGRES_PASSWORD: vectorize_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vectorize_user -d vectorize_db"]
interval: 30s
timeout: 10s
retries: 3
pgadmin:
image: dpage/pgadmin4:latest
container_name: vectorize_pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@vectorize.com
PGADMIN_DEFAULT_PASSWORD: admin123
ports:
- "8080:80"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
api:
build: .
container_name: vectorize_api
environment:
- DATABASE_URL=postgresql://vectorize_user:vectorize_password@postgres:5432/vectorize_db
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_MODEL=${OPENAI_MODEL:-text-embedding-ada-002}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_USERNAME=${GITHUB_USERNAME}
- CHUNK_SIZE=${CHUNK_SIZE:-1000}
- CHUNK_OVERLAP=${CHUNK_OVERLAP:-200}
- MAX_FILE_SIZE=${MAX_FILE_SIZE:-1048576}
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- ./logs:/app/logs
volumes:
postgres_data: