功能: - 网页截图(全页或视口) - HTML代码提取 - 自动滚动加载动态内容 - 自定义视口大小 - Web界面和RESTful API - 支持两种后端: agent-browser 和 Playwright - Docker部署支持 包含: - Flask REST API - 前端Web界面 - 测试脚本 - 安装脚本 - Dockerfile和docker-compose - systemd服务配置
20 lines
441 B
YAML
20 lines
441 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web-capture-api:
|
|
build: .
|
|
image: web-capture-api:latest
|
|
container_name: web-capture-api
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
volumes:
|
|
- ./captures:/tmp/web_captures
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s |