fix infinite loop caused by mariadb and fpm
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ services:
|
|||||||
MYSQL_USER: ${DB_USERNAME}
|
MYSQL_USER: ${DB_USERNAME}
|
||||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
test: ["CMD-SHELL", "mysqladmin ping -h localhost --ssl=0 -u root -p\"$$MYSQL_ROOT_PASSWORD\""]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
@@ -78,9 +78,5 @@ php artisan view:cache
|
|||||||
# 6. Storage link
|
# 6. Storage link
|
||||||
php artisan storage:link 2>/dev/null || true
|
php artisan storage:link 2>/dev/null || true
|
||||||
|
|
||||||
# 7. Switch to app user and start PHP-FPM
|
# 7. Start PHP-FPM
|
||||||
if [ "$(id -u)" = "0" ]; then
|
exec php-fpm
|
||||||
exec su-exec app php-fpm
|
|
||||||
else
|
|
||||||
exec php-fpm
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user