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