Working healthcheck in lbrycrd
This commit is contained in:
parent
499e0f62da
commit
f8ae8792e9
2 changed files with 2 additions and 6 deletions
|
@ -25,8 +25,7 @@ RUN addgroup --gid 1000 lbrycrd && \
|
||||||
chmod a+s /usr/bin/fix-permissions
|
chmod a+s /usr/bin/fix-permissions
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
## TODO: Implement healthcheck.
|
HEALTHCHECK CMD /usr/bin/healthcheck
|
||||||
# HEALTHCHECK ["healthcheck"]
|
|
||||||
EXPOSE 9246 9245 11337 29245
|
EXPOSE 9246 9245 11337 29245
|
||||||
|
|
||||||
USER lbrycrd
|
USER lbrycrd
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
## TODO: Implement a healthcheck for lbrycrd.
|
/usr/bin/lbrycrd-cli -conf=/etc/lbry/lbrycrd.conf getnetworkinfo | grep -q '"networkactive": true,'
|
||||||
curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://$RPC_USER:$RPC_PASSWORD@127.0.0.1:9246
|
|
||||||
## OR
|
|
||||||
lbrycrd-cli getinfo
|
|
||||||
|
|
Loading…
Reference in a new issue