version: "3.9" services: savefiles_logger: image: python:3.11-slim container_name: savefiles_logger working_dir: /app command: ["python3", "watcher.py"] restart: unless-stopped volumes: # Código - /home/sergio/gitea/savefiles_logger:/app # Datos persistentes (backups + logs) - savefiles_data:/app/data # Carpeta de saves del host - /sustancia/home/saves:/saves healthcheck: test: ["CMD", "python3", "-c", "import os; exit(0 if os.path.exists('/app/watcher.py') else 1)"] interval: 30s timeout: 5s retries: 3 start_period: 10s volumes: savefiles_data: driver: local driver_opts: type: none o: bind device: /var/volumes/savefiles_logger