feat: initialize HTML scraper API with Flask and SeleniumBase

This commit is contained in:
2026-02-13 16:03:35 +01:00
commit 9659382d62
16 changed files with 1707 additions and 0 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
services:
html-scraper:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-4001}"
environment:
- FLASK_ENV=${FLASK_ENV:-production}
- FLASK_DEBUG=${FLASK_DEBUG:-0}
- HEADLESS_BROWSER=${HEADLESS_BROWSER:-True}
- DEFAULT_WAIT_TIMEOUT=${DEFAULT_WAIT_TIMEOUT:-15}
- PAGE_LOAD_WAIT=${PAGE_LOAD_WAIT:-3}
- PORT=${PORT:-4001}
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
restart: unless-stopped
shm_size: "2gb"