Fix: Use startup script to create .storage directories at runtime

- Changed from bind mount to named volume for .storage
- Added start.sh script that creates required directories before starting the app
- This prevents ENOENT errors when initializing admin user
This commit is contained in:
2025-10-01 23:05:21 +02:00
parent 713da5a802
commit 857b60e1f5
3 changed files with 20 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ services:
- NODE_ENV=production
restart: unless-stopped
volumes:
- ./.storage:/app/.storage
- storage-data:/app/.storage
networks:
- stargirlnails-network
healthcheck:
@@ -56,6 +56,8 @@ services:
# Volumes für persistente Daten
volumes:
storage-data:
driver: local
certbot-certs:
driver: local
certbot-webroot: