feat: add a healthcheck script that works with a dynamic port (#2510)

This commit is contained in:
Andrew Kennedy
2023-07-22 14:07:15 -07:00
committed by GitHub
parent a664ba1f9d
commit ff4375cf6c
2 changed files with 9 additions and 2 deletions

3
healthcheck.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
PORT=$(jq .port /.filebrowser.json)
curl -f http://localhost:$PORT/health || exit 1