Notes/DockerHealthcheck.sh

7 lines
111 B
Bash
Raw Normal View History

2022-06-18 17:10:26 +03:00
#!/bin/sh
2022-06-18 17:21:41 +03:00
if wget --spider -S "127.0.0.1:8080/login" 2>&1 | grep -w "200" ; then
2022-06-18 17:10:26 +03:00
exit 0
else
exit 1
fi