arreglos de case i backup del antic compose amb nfs
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user