fix(docker): fixes the health check wget (#104)

This commit is contained in:
Matt Kilgore
2024-07-08 11:48:46 -04:00
committed by GitHub
parent d03e60d580
commit ab34791737
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ HEALTHCHECK --interval=30s \
--timeout=5s \ --timeout=5s \
--start-period=5s \ --start-period=5s \
--retries=3 \ --retries=3 \
CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7745/api/v1/status" ] CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "-O -", "http://localhost:7745/api/v1/status" ]
VOLUME [ "/data" ] VOLUME [ "/data" ]
ENTRYPOINT [ "/app/api" ] ENTRYPOINT [ "/app/api" ]

View File

@@ -54,7 +54,7 @@ HEALTHCHECK --interval=30s \
--timeout=5s \ --timeout=5s \
--start-period=5s \ --start-period=5s \
--retries=3 \ --retries=3 \
CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7745/api/v1/status" ] CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "-O -", "http://localhost:7745/api/v1/status" ]
VOLUME [ "/data" ] VOLUME [ "/data" ]
# Drop root and run as low-privileged user # Drop root and run as low-privileged user