[FEATURE] Add health checks to containers (#1425)

pull/1426/head
Amir Zarrinkafsh 2020-11-05 11:59:06 +11:00 committed by GitHub
parent 956dbfb8de
commit 43af825f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 9 deletions

View File

@ -62,9 +62,11 @@ EXPOSE 9091
VOLUME /config
ENV PATH="/app:${PATH}"
ENV PUID=0
ENV PGID=0
# Set environment variables
ENV PATH="/app:${PATH}" \
PUID=0 \
PGID=0
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["--config", "/config/configuration.yml"]
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1

View File

@ -68,9 +68,11 @@ EXPOSE 9091
VOLUME /config
ENV PATH="/app:${PATH}"
ENV PUID=0
ENV PGID=0
# Set environment variables
ENV PATH="/app:${PATH}" \
PUID=0 \
PGID=0
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["--config", "/config/configuration.yml"]
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1

View File

@ -68,9 +68,11 @@ EXPOSE 9091
VOLUME /config
ENV PATH="/app:${PATH}"
ENV PUID=0
ENV PGID=0
# Set environment variables
ENV PATH="/app:${PATH}" \
PUID=0 \
PGID=0
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["--config", "/config/configuration.yml"]
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1