67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
|
|
version: "3.8"
|
||
|
|
|
||
|
|
services:
|
||
|
|
api:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
environment:
|
||
|
|
- FUSIONAGI_API_KEY=${FUSIONAGI_API_KEY:-}
|
||
|
|
- FUSIONAGI_RATE_LIMIT=${FUSIONAGI_RATE_LIMIT:-120}
|
||
|
|
- DATABASE_URL=postgresql://fusionagi:fusionagi@postgres:5432/fusionagi
|
||
|
|
- REDIS_URL=redis://redis:6379/0
|
||
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
||
|
|
- ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY:-}
|
||
|
|
depends_on:
|
||
|
|
postgres:
|
||
|
|
condition: service_healthy
|
||
|
|
redis:
|
||
|
|
condition: service_healthy
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/v1/admin/status"]
|
||
|
|
interval: 10s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 3
|
||
|
|
|
||
|
|
frontend:
|
||
|
|
build:
|
||
|
|
context: ./frontend
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
ports:
|
||
|
|
- "3000:80"
|
||
|
|
environment:
|
||
|
|
- VITE_API_URL=http://api:8000
|
||
|
|
depends_on:
|
||
|
|
- api
|
||
|
|
|
||
|
|
postgres:
|
||
|
|
image: postgres:16-alpine
|
||
|
|
environment:
|
||
|
|
POSTGRES_USER: fusionagi
|
||
|
|
POSTGRES_PASSWORD: fusionagi
|
||
|
|
POSTGRES_DB: fusionagi
|
||
|
|
volumes:
|
||
|
|
- pgdata:/var/lib/postgresql/data
|
||
|
|
ports:
|
||
|
|
- "5432:5432"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD-SHELL", "pg_isready -U fusionagi"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 5
|
||
|
|
|
||
|
|
redis:
|
||
|
|
image: redis:7-alpine
|
||
|
|
ports:
|
||
|
|
- "6379:6379"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "redis-cli", "ping"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 5
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
pgdata:
|