Add Docker health check

Signed-off-by: Andrew Rabert <ar@nullsum.net>
This commit is contained in:
Andrew Rabert
2018-06-18 18:39:00 -04:00
parent 3e1ea6f913
commit 83ef76a098
+2
View File
@@ -28,4 +28,6 @@ EXPOSE $AIRSONIC_PORT
VOLUME $AIRSONIC_DIR/data $AIRSONIC_DIR/music $AIRSONIC_DIR/playlists $AIRSONIC_DIR/podcasts
HEALTHCHECK CMD wget -q http://localhost:"$AIRSONIC_PORT""$CONTEXT_PATH"/rest/ping -O /dev/null || exit 1
ENTRYPOINT ["tini", "--", "run.sh"]