# documentation: https://langfuse.com/docs # slogan: Langfuse is an open-source LLM engineering platform that helps teams collaboratively debug, analyze, and iterate on their LLM applications. # tags: ai, qdrant, weaviate, langchain, openai, gpt, llm, lmops, langfuse, llmops, tracing, observation, metrics # logo: svgs/langfuse.png # port: 3000 version: "3" volumes: pg_data: null services: langfuse: image: langfuse/langfuse:2 restart: always environment: - SERVICE_FQDN_LANGFUSE_3000 - DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-langfuse} - DIRECT_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-langfuse} - SALT=$SERVICE_PASSWORD_SALT - AUTH_DISABLE_SIGNUP=${AUTH_DISABLE_SIGNUP:-false} - NEXTAUTH_URL=$SERVICE_FQDN_LANGFUSE_3000 - NEXTAUTH_SECRET=${SERVICE_BASE64_64_NEXTAUTHSECRET} - TELEMETRY_ENABLED=${TELEMETRY_ENABLED:-false} - LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=${LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES:-false} - HOSTNAME=0.0.0.0 healthcheck: test: - CMD - wget - "-q" - "--spider" - "http://127.0.0.1:3000/api/public/health" interval: 5s timeout: 5s retries: 3 depends_on: postgres: condition: service_healthy postgres: image: "postgres:16-alpine" environment: - POSTGRES_DB=${POSTGRES_DB:-langfuse} - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_USER=$SERVICE_USER_POSTGRES volumes: - "pg_data:/var/lib/postgresql/data" healthcheck: test: - CMD-SHELL - "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}" interval: 5s timeout: 5s retries: 10