55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
# Docker Compose para Langfuse local
|
|
# Documentação: https://langfuse.com/docs/deployment/self-host
|
|
|
|
services:
|
|
langfuse-db:
|
|
image: postgres:15
|
|
container_name: arthur-langfuse-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: langfuse
|
|
POSTGRES_PASSWORD: langfuse_secret
|
|
POSTGRES_DB: langfuse
|
|
volumes:
|
|
- langfuse_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U langfuse"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
langfuse:
|
|
image: ghcr.io/langfuse/langfuse:latest
|
|
container_name: arthur-langfuse
|
|
restart: unless-stopped
|
|
depends_on:
|
|
langfuse-db:
|
|
condition: service_healthy
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
# Database
|
|
DATABASE_URL: postgresql://langfuse:langfuse_secret@langfuse-db:5432/langfuse
|
|
|
|
# Security - ALTERAR EM PRODUÇÃO
|
|
NEXTAUTH_SECRET: ${LANGFUSE_NEXTAUTH_SECRET:-arthur-langfuse-secret-change-me}
|
|
SALT: ${LANGFUSE_SALT:-arthur-salt-change-me}
|
|
NEXTAUTH_URL: http://localhost:3000
|
|
|
|
# Auth
|
|
AUTH_DISABLE_SIGNUP: "false"
|
|
|
|
# Telemetry (opcional - desabilitado)
|
|
TELEMETRY_ENABLED: "false"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/public/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
volumes:
|
|
langfuse_data:
|
|
name: arthur_langfuse_data
|