File size: 1,130 Bytes
fcacf10 | 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 | version: "3.9"
services:
db:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: docweave
POSTGRES_PASSWORD: docweave
POSTGRES_DB: docweave
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U docweave"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://docweave:docweave@db:5432/docweave
SECRET_KEY: change-me-in-production
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: "480"
LLM_PROVIDER: groq
LLM_API_KEY: ${LLM_API_KEY:-}
LLM_MODEL: ${LLM_MODEL:-llama-3.3-70b-versatile}
DOCUMENT_STORAGE_DIR: /app/storage/documents
depends_on:
db:
condition: service_healthy
volumes:
- doc_storage:/app/storage
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- backend
volumes:
pgdata:
doc_storage:
|