initializare

This commit is contained in:
2025-11-06 20:55:35 +02:00
commit 9956e9c11e
32 changed files with 5500 additions and 0 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
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