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 - CLOAKBROWSER_PYTHON_BIN=/opt/scrapling/bin/python - CLOAKBROWSER_SCRIPT=/opt/scrapling/scripts/cloakbrowser_fetch.py - CLOAKBROWSER_TIMEZONE=${CLOAKBROWSER_TIMEZONE:-Europe/Prague} - CLOAKBROWSER_LOCALE=${CLOAKBROWSER_LOCALE:-cs-CZ} - DEBUG_SAVE_HTML=${DEBUG_SAVE_HTML:-} restart: unless-stopped deploy: resources: limits: cpus: '2.0' memory: 4G reservations: cpus: '0.5' memory: 512M 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: