Add basic healthcheck to dockerfile
This commit is contained in:
parent
9df5ec2513
commit
e09e8b7002
1 changed files with 2 additions and 0 deletions
|
|
@ -69,4 +69,6 @@ RUN useradd --create-home --shell /bin/bash timelapse && \
|
|||
|
||||
USER timelapse
|
||||
EXPOSE 5000
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD wget -qO- http://localhost:5000/api/health || exit 1
|
||||
CMD ["./immich-timelapse"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue