fix infinite loop caused by mariadb and fpm

This commit is contained in:
2026-06-06 13:27:18 +07:00
parent 85a6e3bd0d
commit 6968a3d528
2 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ services:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
test: ["CMD-SHELL", "mysqladmin ping -h localhost --ssl=0 -u root -p\"$$MYSQL_ROOT_PASSWORD\""]
interval: 10s
timeout: 5s
retries: 10
+2 -6
View File
@@ -78,9 +78,5 @@ php artisan view:cache
# 6. Storage link
php artisan storage:link 2>/dev/null || true
# 7. Switch to app user and start PHP-FPM
if [ "$(id -u)" = "0" ]; then
exec su-exec app php-fpm
else
exec php-fpm
fi
# 7. Start PHP-FPM
exec php-fpm