-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a health check to the Dockerfile #140
base: master
Are you sure you want to change the base?
Conversation
Allow to detect if there's problem with the nginx process and restart it.
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Dockerfile
Outdated
@@ -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 |
There was a problem hiding this comment.
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
@egguy Sorry for the delay in this, it's been a pretty hectic time. Nice idea, see comment on the review, i'd love to implement this |
I've updated the pull with your recommendations. |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord |
Hello @VibroAxe, I hope it's not tool late, could I request a review, or there are some remaining changes to do ? |
Hey, certainly. Apologies but code review has taken a bit of a back seat. I'll take a look |
No worries, It was my bad too, I was too late to react to prevent closure from the bot. Thx for taking time and maintaining this project PS: Is it possible to also take a look ad #147 to allow the test to work again ? |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord |
@VibroAxe is there a reason why Pull Requests keep getting auto-closed by the bot? I see how there could be a valid reason for issues, but IMO PRs can just stay open until a developer/maintainer decides it doesn't make sense to pursue them further. Autoclosing them because "hurr durr it's inactive" even though what's missing can't even be delivered by the author of the PR is a bit irritating. |
Fair comment. I'll see if I can stop the bot idling out on PRs |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any progress on not idling out on PRs? :p |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord |
Can this be reopened? |
@VibroAxe Looks like this is another valid one that just got lost in the mix. |
Allow to detect it there's problem with the nginx process and restart it.
Use the
/lancache-heartbeat
URL to check.Based on: https://scoutapm.com/blog/how-to-use-docker-healthcheck