Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ VOLUME ["/data/logs", "/data/cache", "/data/cachedomains", "/var/www"]

EXPOSE 80 443
WORKDIR /scripts

HEALTHCHECK CMD curl --fail http://127.0.0.1/lancache-heartbeat || exit 1
Copy link
Copy Markdown
Member

@VibroAxe VibroAxe Mar 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, i've been meaning to do this forever!
We should probably define some start's and intervals. How about?
HEALTHCHECK --interval=1m --timeout=1s --start-period=120s --retries=3 CMD curl -f http://localhost/ || exit 1