version: '3.8' services: btgo-scraper: build: . container_name: btgo-scraper # Mount volumes pentru persistenta volumes: - ./data:/app/data - ./logs:/app/logs # Environment variables - citeste din .env environment: - BTGO_USERNAME=${BTGO_USERNAME} - BTGO_PASSWORD=${BTGO_PASSWORD} - HEADLESS=true - TIMEOUT_2FA_SECONDS=${TIMEOUT_2FA_SECONDS:-120} - SCREENSHOT_ON_ERROR=${SCREENSHOT_ON_ERROR:-true} - LOG_LEVEL=${LOG_LEVEL:-INFO} - TZ=Europe/Bucharest # Restart policy (schimba la 'always' pentru rulare automata) restart: "no" # Resource limits (optional) deploy: resources: limits: cpus: '2' memory: 2G