Files
btgo-playwright/docker-compose.yml
2025-11-06 20:55:35 +02:00

32 lines
739 B
YAML

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