refactor(docker): simplify Dockerfile and remove custom browser component

- 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
This commit is contained in:
nafer committed 2026-02-26 15:57:24 +03:00
1 parent 1f7d15a151
commit 0b91ee5481
5 files changed
+87 -304

No files matched your search

+6 -2
View File
@@ -2,21 +2,25 @@ version: '3.8'
services:
langflow:
image: langflowai/langflow:1.7.3
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"
command: ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/"]
interval: 30s