From 2e4ea6c8aeef9d1a717a04913a9578f84c97eb21 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 6 Aug 2026 17:51:58 +0200 Subject: [PATCH] arreglos de case i backup del antic compose amb nfs --- docker-compose-nfs.yml | 38 ++++++++++++++++++++++++++++++++++++++ files.py | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 docker-compose-nfs.yml diff --git a/docker-compose-nfs.yml b/docker-compose-nfs.yml new file mode 100644 index 0000000..3dd28e8 --- /dev/null +++ b/docker-compose-nfs.yml @@ -0,0 +1,38 @@ +services: + gamewatcher: + image: python:3.11-slim + container_name: gamewatcher + working_dir: /data/app + command: ["python3", "watcher.py"] + restart: always + + volumes: + # Volumen persistente local (scripts y configuración) + - gamewatcher_data:/data + + # Carpeta de SAVES directamente desde el NAS + - nfs_saves_sergio:/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: + # Volumen local para la app + gamewatcher_data: + driver: local + driver_opts: + type: none + o: bind + device: /var/volumes/gamewatcher + + # Volumen NFS para los saves + nfs_saves_sergio: + driver: local + driver_opts: + type: nfs + o: "addr=192.168.0.10,rw,nfsvers=4,nolock,soft,tcp" + device: ":/volume1/homes/sergio/saves" \ No newline at end of file diff --git a/files.py b/files.py index c8fe91d..584dbe6 100644 --- a/files.py +++ b/files.py @@ -1,4 +1,4 @@ FILES = [ - "/SAVES/Retroarch/Beetle PSX HW/Suikoden II (USA) (Bug Fix) (Pyriel) (2.02.078).1.mcr", - "/SAVES/Retroarch/Beetle PSX HW/Suikoden II (USA) (Bug Fix) (Pyriel) (2.02.078).srm", + "/saves/SAVES/retroarch/Beetle PSX HW/Suikoden II (USA) (Bug Fix) (Pyriel) (2.02.078).1.mcr", + "/saves/SAVES/retroarch/Beetle PSX HW/Suikoden II (USA) (Bug Fix) (Pyriel) (2.02.078).srm", ]