From 2402afff131857d546c81ce8327ece028ebda1f7 Mon Sep 17 00:00:00 2001 From: elpatron Date: Tue, 30 Sep 2025 19:24:20 +0200 Subject: [PATCH] Add persistent storage volume to Docker configuration - Mount .storage directory from host to container for data persistence - Update docker-compose.yml with volumes configuration - Update README.md with volume documentation - Ensure bookings and settings persist across container restarts --- README.md | 3 +++ docker-compose.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index a684640..7cddde8 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,8 @@ services: env_file: - .env restart: unless-stopped + volumes: + - ./.storage:/app/.storage healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/health"] interval: 30s @@ -172,6 +174,7 @@ docker run -d \ - Setze `NODE_ENV=production` in der Umgebungsdatei - Verwende einen Reverse Proxy (nginx, Traefik) für HTTPS - Überwache Container mit Health Checks +- **Persistente Daten**: Der `.storage` Ordner wird als Volume gemountet, um Buchungen und Einstellungen zu erhalten ## Features diff --git a/docker-compose.yml b/docker-compose.yml index 271f09f..8ed22c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,8 @@ services: env_file: - .env restart: unless-stopped + volumes: + - ./.storage:/app/.storage healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] interval: 30s