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
This commit is contained in:
@@ -129,6 +129,8 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./.storage:/app/.storage
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -172,6 +174,7 @@ docker run -d \
|
|||||||
- Setze `NODE_ENV=production` in der Umgebungsdatei
|
- Setze `NODE_ENV=production` in der Umgebungsdatei
|
||||||
- Verwende einen Reverse Proxy (nginx, Traefik) für HTTPS
|
- Verwende einen Reverse Proxy (nginx, Traefik) für HTTPS
|
||||||
- Überwache Container mit Health Checks
|
- Überwache Container mit Health Checks
|
||||||
|
- **Persistente Daten**: Der `.storage` Ordner wird als Volume gemountet, um Buchungen und Einstellungen zu erhalten
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
@@ -6,6 +6,8 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./.storage:/app/.storage
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
Reference in New Issue
Block a user