Notes/DockerHealthcheck.sh

7 lines
105 B
Bash

#!/bin/sh
if wget --spider -S "127.0.0.1:8080" 2>&1 | grep -w "302" ; then
exit 0
else
exit 1
fi