mirror of
https://github.com/Dvorinka/facr-scraper.git
synced 2026-06-03 20:12:57 +00:00
28 lines
785 B
YAML
28 lines
785 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
facr-scraper:
|
|
build: .
|
|
ports:
|
|
- "8686:8686"
|
|
environment:
|
|
- LOGOAPI_BASE_URL=${LOGOAPI_BASE_URL:-https://logoapi.sportcreative.eu}
|
|
- CLOUDFLARE_ACCOUNT_ID=${CLOUDFLARE_ACCOUNT_ID}
|
|
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
|
- SCRAPLING_PYTHON_BIN=/opt/scrapling/bin/python
|
|
- SCRAPLING_SCRIPT=/opt/scrapling/scripts/scrapling_fetch.py
|
|
- DEBUG_SAVE_HTML=${DEBUG_SAVE_HTML:-}
|
|
restart: unless-stopped
|
|
volumes:
|
|
# Optional: Mount cache for Playwright browsers
|
|
- playwright_cache:/home/scraper/.cache
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8686/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
playwright_cache:
|