Skip to content

Commit 9bb780f

Browse files
committed
add healthz check
1 parent 20a0940 commit 9bb780f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ done
1717

1818
touch .adminer-init || true
1919

20+
echo 'OK' > _healthz || true
21+
2022
exec "$@"

index.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ function _callParent($function, $args) {
3535
exit;
3636
}
3737

38-
if (basename($_SERVER['DOCUMENT_URI'] ?? $_SERVER['REQUEST_URI']) === 'healthz') {
39-
header('Content-Type: text/plain');
40-
echo 'OK';
41-
exit;
42-
}
43-
4438
function adminer_object() {
4539
return \docker\adminer_object();
4640
}

0 commit comments

Comments
 (0)