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

11
start.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Create .storage directories if they don't exist
mkdir -p /app/.storage/users
mkdir -p /app/.storage/bookings
mkdir -p /app/.storage/treatments
mkdir -p /app/.storage/availability
mkdir -p /app/.storage/cancellation-tokens
# Start the application
exec node server-dist/index.js