changed approach to shared volumes between nginx and app

This commit is contained in:
2026-06-06 15:26:07 +07:00
parent fddf5398fc
commit 553f90d482
3 changed files with 12 additions and 3 deletions
+6
View File
@@ -14,6 +14,12 @@ if [ "$(id -u)" = "0" ]; then
chown -R app:app /var/www/html/storage /var/www/html/public/photos
fi
# Sync app source from image to volume
if [ -d /app-source ]; then
echo "Syncing app source to volume..."
cp -a /app-source/. /var/www/html/
fi
# 1. Wait for MySQL
echo "Waiting for MySQL..."
for i in $(seq 1 30); do