Skip to content

Commit

Permalink
Add Healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogslomp committed Nov 30, 2023
1 parent 45d7d16 commit 8af4f09
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dockerfiles/almalinux
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ WORKDIR /usr/local/sbin
COPY sbin /usr/local/sbin
CMD bash -c "samba-domain-provision && samba -F"
VOLUME /usr/local/samba

HEALTHCHECK --interval=5s --timeout=3s --retries=60 \
CMD nc -z localhost 445 || exit 1

EXPOSE 53 53/udp 88 88/udp 123/udp 135 137/udp 138/udp 139 389 389/udp 445 464 464/udp 636 3268 3269 49152-65535
4 changes: 4 additions & 0 deletions dockerfiles/debian
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ WORKDIR /usr/local/sbin
COPY sbin /usr/local/sbin
CMD bash -c "samba-domain-provision && samba -F"
VOLUME /usr/local/samba

HEALTHCHECK --interval=5s --timeout=3s --retries=60 \
CMD nc -z localhost 445 || exit 1

EXPOSE 53 53/udp 88 88/udp 123/udp 135 137/udp 138/udp 139 389 389/udp 445 464 464/udp 636 3268 3269 49152-65535
4 changes: 4 additions & 0 deletions dockerfiles/rockylinux
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ WORKDIR /usr/local/sbin
COPY sbin /usr/local/sbin
CMD bash -c "samba-domain-provision && samba -F"
VOLUME /usr/local/samba

HEALTHCHECK --interval=5s --timeout=3s --retries=60 \
CMD nc -z localhost 445 || exit 1

EXPOSE 53 53/udp 88 88/udp 123/udp 135 137/udp 138/udp 139 389 389/udp 445 464 464/udp 636 3268 3269 49152-65535
4 changes: 4 additions & 0 deletions dockerfiles/ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ WORKDIR /usr/local/sbin
COPY sbin /usr/local/sbin
CMD bash -c "samba-domain-provision && samba -F"
VOLUME /usr/local/samba

HEALTHCHECK --interval=5s --timeout=3s --retries=60 \
CMD nc -z localhost 445 || exit 1

EXPOSE 53 53/udp 88 88/udp 123/udp 135 137/udp 138/udp 139 389 389/udp 445 464 464/udp 636 3268 3269 49152-65535

0 comments on commit 8af4f09

Please sign in to comment.