version: "3.9" services: gamewatcher: image: python:3.11-slim container_name: gamewatcher working_dir: /data/app command: ["python3", "watcher.py"] restart: unless-stopped volumes: # Volumen persistente con scripts y backups - gamewatcher_data:/data # Carpeta de saves del host - /sustancia/home/saves:/saves healthcheck: test: ["CMD", "python3", "-c", "import os; exit(0 if os.path.exists('/data/app/watcher.py') else 1)"] interval: 30s timeout: 5s retries: 3 start_period: 10s volumes: gamewatcher_data: driver: local driver_opts: type: none o: bind device: /var/volumes/gamewatcher