refet tot per a docker

This commit is contained in:
2026-02-08 14:00:43 +01:00
parent 46aed1f13d
commit b951dfeddf
3 changed files with 81 additions and 13 deletions
+34
View File
@@ -0,0 +1,34 @@
version: "3.9"
services:
savefiles_logger:
image: python:3.11-slim
container_name: savefiles_logger
working_dir: /app
command: ["python3", "watcher.py"]
restart: unless-stopped
volumes:
# Código
- /home/sergio/gitea/savefiles_logger:/app
# Datos persistentes (backups + logs)
- savefiles_data:/app/data
# Carpeta de saves del host
- /sustancia/home/saves:/saves
healthcheck:
test: ["CMD", "python3", "-c", "import os; exit(0 if os.path.exists('/app/watcher.py') else 1)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
savefiles_data:
driver: local
driver_opts:
type: none
o: bind
device: /var/volumes/savefiles_logger