mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(deploy): docker health check failure
This commit is contained in:
@@ -70,6 +70,8 @@ RUN mkdir -p /opt/memoh/data
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
|
||||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/health \
|
||||
|| wget --no-verbose --tries=1 --spider http://server:8080/health \
|
||||
|| exit 1
|
||||
|
||||
CMD ["/app/memoh-server"]
|
||||
|
||||
Reference in New Issue
Block a user