- Simplified Dockerfile by removing system dependencies, Playwright installation, and unnecessary Python packages - Removed custom browser_use_component.py (now using custom_components directory) - Updated docker-compose to build from Dockerfile and mount custom_components - Retained only essential dependencies: browser-use and langchain-openai
33 lines
811 B
YAML
33 lines
811 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
langflow:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "7860:7860"
|
|
networks:
|
|
- dokploy-network
|
|
volumes:
|
|
- ./custom_components:/app/custom_components
|
|
environment:
|
|
LANGFLOW_SECRET_KEY: ${LANGFLOW_SECRET_KEY:-changeme}
|
|
LANGFLOW_HOST: 0.0.0.0
|
|
LANGFLOW_PORT: 7860
|
|
LANGFLOW_COMPONENTS_PATH: /app/custom_components
|
|
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
|
|
OPENROUTER_BASE_URL: https://openrouter.ai/api/v1
|
|
BROWSERLESS_API_URL: http://browserless.home
|
|
BROWSER_HEADLESS: "true"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:7860/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|