Use more retries instead of a custom cycle to speed up health checking - (30s check, 30s timeout) vs (60s, 15s)
This commit is contained in:
parent
6532fb1072
commit
7288f7f868
@ -42,9 +42,9 @@ COPY samba.sh /usr/bin/
|
||||
|
||||
EXPOSE 137/udp 138/udp 139 445
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s \
|
||||
HEALTHCHECK --retries=6 \
|
||||
CMD smbclient -L '\\localhost\' -U 'guest%' -m SMB3
|
||||
|
||||
VOLUME ["/etc/samba"]
|
||||
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
|
@ -37,11 +37,11 @@ RUN ["cross-build-end"]
|
||||
|
||||
COPY samba.sh /usr/bin/
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s \
|
||||
HEALTHCHECK --retries=6 \
|
||||
CMD smbclient -L '\\localhost\' -U 'guest%' -m SMB3
|
||||
|
||||
EXPOSE 137/udp 138/udp 139 445
|
||||
|
||||
VOLUME ["/etc/samba"]
|
||||
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
ENTRYPOINT ["samba.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user