feat: add app trae-proxy

This commit is contained in:
arch3rPro
2025-09-17 22:31:22 +08:00
parent 5c4fa38f74
commit ad3d9ffb4a
6 changed files with 133 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
# Browser-Use
WebUI基于 Gradio 构建支持大多数browser-use功能。该 UI 设计简洁易用,可轻松与浏览器代理进行交互。
扩展的 LLM 支持:我们集成了对各种大型语言模型 (LLM) 的支持包括Google、OpenAI、Azure OpenAI、Anthropic、DeepSeek、Ollama 等。我们计划在未来增加对更多模型的支持。
自定义浏览器支持:您可以使用自己的浏览器运行我们的工具,无需重新登录网站或进行其他身份验证。此功能还支持高清屏幕录制。
持久浏览器会话:您可以选择在 AI 任务之间保持浏览器窗口打开,从而让您查看 AI 交互的完整历史记录和状态

24
apps/browser-use/data.yml Normal file
View File

@@ -0,0 +1,24 @@
name: Browser-Use
tags:
- 实用工具
- AI
- 开发工具
title: 让 AI 代理可以访问网站。轻松实现在线任务自动化
description:
en: Make websites accessible for AI agents. Automate tasks online with ease
zh: 让 AI 代理可以访问网站。轻松实现在线任务自动化
additionalProperties:
key: browser-use
name: Browser-Use
tags:
- Tool
- AI
- DevTool
shortDescZh: 让 AI 代理可以访问网站。轻松实现在线任务自动化
shortDescEn: Make websites accessible for AI agents. Automate tasks online with ease
type: website
crossVersionUpdate: true
limit: 0
website: https://browser-use.com/
github: https://github.com/browser-use/browser-use
document: https://github.com/browser-use/browser-use

View File

@@ -0,0 +1,11 @@
additionalProperties:
formFields:
- default: "7788"
envKey: PANEL_APP_PORT_HTTP
label:
en: Port
zh: 端口
required: true
type: number
edit: true
rule: paramPort

View File

@@ -0,0 +1,84 @@
services:
# debug: docker compose run --rm -it browser-use-webui bash
browser-use-webui:
image: ghcr.io/browser-use/web-ui:latest # Using precompiled image
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:7788"
- "6080:6080"
- "5901:5901"
- "9222:9222"
environment:
# LLM API Keys & Endpoints
- OPENAI_ENDPOINT=${OPENAI_ENDPOINT:-https://api.openai.com/v1}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_ENDPOINT=${ANTHROPIC_ENDPOINT:-https://api.anthropic.com}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GOOGLE_API_KEY=AIzaSyAEOcI44RQMQgbhoZvS3_XCAGqNXoPi3xQ
- AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}
- AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-}
- AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION:-2025-01-01-preview}
- DEEPSEEK_ENDPOINT=http://192.168.123.216:8100
- DEEPSEEK_API_KEY=LxtexOrHmp/eGgnEjk8GRe245K7+/rLy912xg8kSuOOHI/eBnF9IonoZI6/n4xlj
- OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT:-http://localhost:11434}
- MISTRAL_ENDPOINT=${MISTRAL_ENDPOINT:-https://api.mistral.ai/v1}
- MISTRAL_API_KEY=${MISTRAL_API_KEY:-}
- ALIBABA_ENDPOINT=${ALIBABA_ENDPOINT:-https://dashscope.aliyuncs.com/compatible-mode/v1}
- ALIBABA_API_KEY=${ALIBABA_API_KEY:-}
- MOONSHOT_ENDPOINT=${MOONSHOT_ENDPOINT:-https://api.moonshot.cn/v1}
- MOONSHOT_API_KEY=${MOONSHOT_API_KEY:-}
- UNBOUND_ENDPOINT=${UNBOUND_ENDPOINT:-https://api.getunbound.ai}
- UNBOUND_API_KEY=${UNBOUND_API_KEY:-}
- SiliconFLOW_ENDPOINT=${SiliconFLOW_ENDPOINT:-https://api.siliconflow.cn/v1/}
- SiliconFLOW_API_KEY=${SiliconFLOW_API_KEY:-}
- IBM_ENDPOINT=${IBM_ENDPOINT:-https://us-south.ml.cloud.ibm.com}
- IBM_API_KEY=${IBM_API_KEY:-}
- IBM_PROJECT_ID=${IBM_PROJECT_ID:-}
# Application Settings
- ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-false}
- BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}
# Browser Settings
- BROWSER_PATH=
- BROWSER_USER_DATA=
- BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}
- BROWSER_DEBUGGING_HOST=localhost
- USE_OWN_BROWSER=false
- KEEP_BROWSER_OPEN=true
- BROWSER_CDP=${BROWSER_CDP:-} # e.g., http://localhost:9222
# Display Settings
- DISPLAY=:99
# This ENV is used by the Dockerfile during build time if playwright respects it.
# It's not strictly needed at runtime by docker-compose unless your app or scripts also read it.
- PLAYWRIGHT_BROWSERS_PATH=/ms-browsers # Matches Dockerfile ENV
- RESOLUTION=${RESOLUTION:-1920x1080x24}
- RESOLUTION_WIDTH=${RESOLUTION_WIDTH:-1920}
- RESOLUTION_HEIGHT=${RESOLUTION_HEIGHT:-1080}
# VNC Settings
- VNC_PASSWORD=${VNC_PASSWORD:-youvncpassword}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
# - ./my_chrome_data:/app/data/chrome_data # Optional: persist browser data
restart: unless-stopped
shm_size: "2gb"
cap_add:
- SYS_ADMIN
tmpfs:
- /tmp
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "5901"] # VNC port
interval: 10s
timeout: 5s
retries: 3
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/browser-use/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -33,7 +33,7 @@ services:
networks: networks:
1panel-network: 1panel-network:
ipv4_address: ${SUBNET_PREFIX}.235 ipv4_address: ${SUBNET_PREFIX}.235
image: chaitin/safeline-detector:9.2.4 image: chaitin/safeline-detector:9.2.5
volumes: volumes:
- ${SAFELINE_DIR}/resources/detector:/resources/detector - ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/logs/detector:/logs/detector - ${SAFELINE_DIR}/logs/detector:/logs/detector
@@ -45,7 +45,7 @@ services:
safeline-tengine: safeline-tengine:
container_name: ${CONTAINER_NAME}-tengine container_name: ${CONTAINER_NAME}-tengine
restart: always restart: always
image: chaitin/safeline-tengine:9.2.4 image: chaitin/safeline-tengine:9.2.5
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/resolv.conf:/etc/resolv.conf:ro - /etc/resolv.conf:/etc/resolv.conf:ro
@@ -69,7 +69,7 @@ services:
networks: networks:
1panel-network: 1panel-network:
ipv4_address: ${SUBNET_PREFIX}.237 ipv4_address: ${SUBNET_PREFIX}.237
image: chaitin/safeline-luigi:9.2.4 image: chaitin/safeline-luigi:9.2.5
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/luigi:/app/data - ${SAFELINE_DIR}/resources/luigi:/app/data
@@ -90,7 +90,7 @@ services:
networks: networks:
1panel-network: 1panel-network:
ipv4_address: ${SUBNET_PREFIX}.238 ipv4_address: ${SUBNET_PREFIX}.238
image: chaitin/safeline-fvm:9.2.4 image: chaitin/safeline-fvm:9.2.5
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
logging: logging:
@@ -126,7 +126,7 @@ services:
networks: networks:
1panel-network: 1panel-network:
ipv4_address: ${SUBNET_PREFIX}.240 ipv4_address: ${SUBNET_PREFIX}.240
image: chaitin/safeline-chaos:9.2.4 image: chaitin/safeline-chaos:9.2.5
logging: logging:
options: options:
max-size: 100m max-size: 100m