arreglos de case i backup del antic compose amb nfs

This commit is contained in:
2026-08-06 17:51:58 +02:00
parent 576ce918f9
commit 2e4ea6c8ae
2 changed files with 40 additions and 2 deletions
+38
View File
@@ -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"
+2 -2
View File
@@ -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",
]