Add docker healthcheck

This commit is contained in:
Felipe Santos 2023-09-30 14:12:40 -03:00 committed by GitHub
parent 9a4f970337
commit 30a86f24c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,3 +256,6 @@ FROM deps AS frigate
WORKDIR /opt/frigate/
COPY --from=rootfs / /
HEALTHCHECK --start-period=90s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1