mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
fix: set correct port in docker healthcheck (#2812)
When the `FB_PORT` environment variable is set, respect its value. Otherwise, pick the port from the configuration.
This commit is contained in:
parent
a4cb813ddf
commit
d59ad594b8
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PORT=$(jq .port /.filebrowser.json)
|
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
|
||||||
curl -f http://localhost:$PORT/health || exit 1
|
curl -f http://localhost:$PORT/health || exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user