version: '3.8' services: langflow: build: context: . dockerfile: Dockerfile container_name: langflow restart: unless-stopped expose: - "7860" environment: LANGFLOW_DATABASE_URL: sqlite:///./langflow.db LANGFLOW_SECRET_KEY: ${LANGFLOW_SECRET_KEY:-your-secret-key-change-in-production} LANGFLOW_AUTO_LOGIN: "false" LANGFLOW_LOG_LEVEL: INFO OPENROUTER_API_KEY: ${OPENROUTER_API_KEY} OPENROUTER_BASE_URL: https://openrouter.ai/api/v1 BROWSERLESS_API_URL: http://browserless.home BROWSER_HEADLESS: "true" HTTP_PROXY: ${HTTP_PROXY:-} HTTPS_PROXY: ${HTTPS_PROXY:-} NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1,browserless.home} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s