41 lines
941 B
YAML
41 lines
941 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build: ./backend
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DATABASE_URL=postgresql://aiworker:aiworker123@db:5432/ai_worker
|
|
- SECRET_KEY=production-secret-change-me
|
|
- DEFAULT_LLM_API_KEY=${LLM_API_KEY:-}
|
|
- DEFAULT_LLM_BASE_URL=${LLM_BASE_URL:-https://api.openai.com/v1}
|
|
- DEFAULT_LLM_MODEL=${LLM_MODEL:-gpt-4o-mini}
|
|
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost:80
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: aiworker
|
|
POSTGRES_PASSWORD: aiworker123
|
|
POSTGRES_DB: ai_worker
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pgdata:
|