This commit is contained in:
t3chn0m4g3
2024-02-28 21:05:03 +01:00
parent be74fc75ca
commit 519a101fdf
10 changed files with 37 additions and 36 deletions

View File

@ -41,6 +41,7 @@ RUN apk --no-cache -U add \
#
# Run tpotinit
WORKDIR /opt/tpot
HEALTHCHECK --interval=5m --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
#HEALTHCHECK --interval=5s --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
HEALTHCHECK --retries=1000 --interval=5s CMD test -f /tmp/success || exit 1
STOPSIGNAL SIGKILL
CMD ["/opt/tpot/entrypoint.sh"]

View File

@ -300,6 +300,7 @@ echo
figlet "Starting ..."
figlet "T-Pot: ${TPOT_VERSION}"
echo
touch /tmp/success
# We want to see true source for UDP packets in container (https://github.com/moby/libnetwork/issues/1994)
# Start autoheal if running on a supported os

View File

@ -9,7 +9,7 @@ services:
env_file:
- $HOME/tpotce/.env
restart: "no"
image: "ghcr.io/telekom-security/tpotinit:alpha"
image: "dtagdevsec/tpotinit:alpha"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $HOME/tpotce/data:/data