feat: add health check to docker image

This commit is contained in:
Deluan 2020-03-26 15:15:40 -04:00
parent 2c42e4e12e
commit 7febe05ed5
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ ui/node_modules
ui/build
Jamstash-master
Dockerfile
docker-compose*.yml
data
*.db
testDB

View File

@ -63,10 +63,13 @@ VOLUME ["/data", "/music"]
ENV ND_MUSICFOLDER /music
ENV ND_DATAFOLDER /data
ENV ND_SCANINTERVAL 1m
ENV ND_TRANSCODINGCACHESIZE 100MB
ENV ND_SESSIONTIMEOUT 30m
ENV ND_LOGLEVEL info
ENV ND_PORT 4533
EXPOSE 4533
EXPOSE ${ND_PORT}
HEALTHCHECK CMD wget -O- http://localhost:4533/ping || exit 1
WORKDIR /app
ENTRYPOINT ["/tini", "--"]