Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

egguy
Copy link

@egguy egguy commented Dec 14, 2021

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

Allow to detect if there's problem with the nginx process and restart it.
@stale
Copy link

stale bot commented Feb 12, 2022

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.

@stale stale bot added the inactive Issue appears to be inactive label Feb 12, 2022
@VibroAxe VibroAxe removed the inactive Issue appears to be inactive label Mar 6, 2022
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
Copy link
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

@VibroAxe
Copy link
Member

VibroAxe commented Mar 6, 2022

@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

@egguy
Copy link
Author

egguy commented Mar 8, 2022

I've updated the pull with your recommendations.

@stale
Copy link

stale bot commented May 25, 2022

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.

@stale stale bot added the inactive Issue appears to be inactive label May 25, 2022
@stale
Copy link

stale bot commented Jun 27, 2022

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

@stale stale bot closed this Jun 27, 2022
@egguy
Copy link
Author

egguy commented Jun 29, 2022

Hello @VibroAxe, I hope it's not tool late, could I request a review, or there are some remaining changes to do ?

@VibroAxe
Copy link
Member

Hey, certainly. Apologies but code review has taken a bit of a back seat. I'll take a look

@VibroAxe VibroAxe reopened this Jun 30, 2022
@egguy
Copy link
Author

egguy commented Jun 30, 2022

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 ?

@stale stale bot removed the inactive Issue appears to be inactive label Jun 30, 2022
@stale
Copy link

stale bot commented Sep 4, 2022

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.

@stale stale bot added the inactive Issue appears to be inactive label Sep 4, 2022
@egguy egguy requested a review from VibroAxe September 13, 2022 20:59
@stale
Copy link

stale bot commented Oct 14, 2022

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

@stale stale bot closed this Oct 14, 2022
@PotcFdk
Copy link

PotcFdk commented Oct 14, 2022

@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.

@VibroAxe
Copy link
Member

Fair comment. I'll see if I can stop the bot idling out on PRs

@VibroAxe VibroAxe reopened this Oct 14, 2022
@stale stale bot removed the inactive Issue appears to be inactive label Oct 14, 2022
@stale
Copy link

stale bot commented Dec 14, 2022

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.

@stale stale bot added the inactive Issue appears to be inactive label Dec 14, 2022
@PotcFdk
Copy link

PotcFdk commented Dec 14, 2022

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

@stale stale bot removed the inactive Issue appears to be inactive label Dec 14, 2022
@stale
Copy link

stale bot commented Feb 19, 2023

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.

@stale stale bot added the inactive Issue appears to be inactive label Feb 19, 2023
@jobhh
Copy link

jobhh commented Feb 19, 2023

Any progress on not idling out on PRs? :p

@stale stale bot removed the inactive Issue appears to be inactive label Feb 19, 2023
@stale
Copy link

stale bot commented Apr 25, 2023

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.

@stale stale bot added the inactive Issue appears to be inactive label Apr 25, 2023
@stale
Copy link

stale bot commented Jun 10, 2023

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

@stale stale bot closed this Jun 10, 2023
@PotcFdk
Copy link

PotcFdk commented Jun 10, 2023

Can this be reopened?

@tpill90
Copy link
Contributor

tpill90 commented Feb 22, 2025

@VibroAxe Looks like this is another valid one that just got lost in the mix.

@VibroAxe VibroAxe reopened this Feb 22, 2025
@stale stale bot removed the inactive Issue appears to be inactive label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants