feat: initialize HTML scraper API with Flask and SeleniumBase
This commit is contained in:
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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"
|
||||
Reference in New Issue
Block a user