[FEATURE] Add health checks to containers (#1425)
parent
956dbfb8de
commit
43af825f47
|
@ -62,9 +62,11 @@ EXPOSE 9091
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
ENV PATH="/app:${PATH}"
|
# Set environment variables
|
||||||
ENV PUID=0
|
ENV PATH="/app:${PATH}" \
|
||||||
ENV PGID=0
|
PUID=0 \
|
||||||
|
PGID=0
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["--config", "/config/configuration.yml"]
|
CMD ["--config", "/config/configuration.yml"]
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1
|
||||||
|
|
|
@ -68,9 +68,11 @@ EXPOSE 9091
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
ENV PATH="/app:${PATH}"
|
# Set environment variables
|
||||||
ENV PUID=0
|
ENV PATH="/app:${PATH}" \
|
||||||
ENV PGID=0
|
PUID=0 \
|
||||||
|
PGID=0
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["--config", "/config/configuration.yml"]
|
CMD ["--config", "/config/configuration.yml"]
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1
|
||||||
|
|
|
@ -68,9 +68,11 @@ EXPOSE 9091
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
ENV PATH="/app:${PATH}"
|
# Set environment variables
|
||||||
ENV PUID=0
|
ENV PATH="/app:${PATH}" \
|
||||||
ENV PGID=0
|
PUID=0 \
|
||||||
|
PGID=0
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["--config", "/config/configuration.yml"]
|
CMD ["--config", "/config/configuration.yml"]
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s CMD wget --quiet --tries=1 --spider http://localhost:9091/api/state || exit 1
|
||||||
|
|
Loading…
Reference in New Issue