Add healthcheck for adminer.

This commit is contained in:
Lukáš Novák 2019-11-14 17:40:58 +01:00
parent ccb2dab239
commit 1bc9c28885
2 changed files with 15 additions and 0 deletions

5
adminer/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM adminer
COPY docker-healthcheck /usr/local/bin/
HEALTHCHECK CMD ["docker-healthcheck"]

10
adminer/docker-healthcheck Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -eo pipefail
host="$(hostname -i)"
if curl -sS "http://$host:8080"; then
exit 0
fi
exit 1