forum/docker/php/docker-healthcheck.sh

9 lines
162 B
Bash
Raw Normal View History

2019-12-03 21:00:08 +01:00
#!/bin/sh
set -e
2021-06-14 15:15:01 +02:00
if env -i REQUEST_METHOD=GET SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping cgi-fcgi -bind -connect /var/run/php/php-fpm.sock; then
2019-12-03 21:00:08 +01:00
exit 0
fi
exit 1