version: '3.9' services: langfuse-server: image: langfuse/langfuse:2 container_name: langfuse-server restart: unless-stopped ports: - "3000:3000" environment: # Docker automatically pulls these from your .env file - DATABASE_URL=${DATABASE_URL} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - SALT=${SALT} - NEXTAUTH_URL=http://localhost:3000 - TELEMETRY_ENABLED=false - NODE_ENV=production # 🟢 Connect to the SAME network as your Agent and Database networks: - imam-javad_backend_imam-javad healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 # Define the network so Docker knows it already exists networks: imam-javad_backend_imam-javad: external: true