Files
gamewatcher/docker-compose.yml
2026-02-13 10:21:16 +01:00

31 lines
693 B
YAML

version: "3.9"
services:
gamewatcher:
image: python:3.11-slim
container_name: gamewatcher
working_dir: /data/app
command: ["python3", "watcher.py"]
restart: always
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