Commit f8c5f5fc authored by Franck Nijhof's avatar Franck Nijhof

🔨 Makes NGinx wait for PHP-FPM before starting

parent 6f089e24
Pipeline #54460929 passed with stages
in 13 minutes and 16 seconds
......@@ -5,5 +5,9 @@
# ==============================================================================
# Wait for PHP-FPM to become available
s6-svwait -u -t 5000 /var/run/s6/services/php-fpm
timeout 15 \
bash -c \
'until echo > /dev/tcp/localhost/9001 ; do sleep 0.5; done' \
> /dev/null 2>&1
exec nginx -g "daemon off;"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment