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

How to: Container Labels #106

Closed
saschabrockel opened this issue Aug 6, 2024 · 2 comments
Closed

How to: Container Labels #106

saschabrockel opened this issue Aug 6, 2024 · 2 comments

Comments

@saschabrockel
Copy link

You seem to develop this great tool now. I opened the same feature request in the original repo because it would be so nice to have. Watchtower has the possibility for example.

willfarrell/docker-autoheal#126

My original comment:
Is it possible to use a label to specify containers that should be excluded from autoheal instead of being included? I have 100 containers and I don't want to add labels for inclusion to 99 ones because one shouldn't be auto-healed.

@saschabrockel
Copy link
Author

saschabrockel commented Aug 6, 2024

Ok, nevermind you already implemented it! Great really! But I'm not able to get Apprise working. I get no notifications...

The logs look like something should appear:

2024-08-06T01:37:16.752741576Z 2024-08-06 01:37:16+0000 [WARNING] [OnlyOfficeDocumentServer (745494b32ac0)] Container is unhealthy with 3 failures
2024-08-06T01:37:16.752798386Z 2024-08-06 01:37:16+0000 [WARNING] [OnlyOfficeDocumentServer (745494b32ac0)] Container last output: [1] https://xyz.de/healthcheck:
2024-08-06T01:37:16.752805556Z Remote file does not exist -- broken link!!!
2024-08-06T01:37:16.752812627Z 
2024-08-06T01:37:16.752817842Z 2024-08-06 01:37:16+0000 [WARNING] [OnlyOfficeDocumentServer (745494b32ac0)] Container restarting with 30s timeout
2024-08-06T01:37:47.022011919Z 2024-08-06 01:37:47+0000 [   INFO] [OnlyOfficeDocumentServer (745494b32ac0)] Container restart was successful
2024-08-06T01:37:47.291852731Z 2024-08-06 01:37:47+0000 [   INFO] Response: 401 Unauthorized

I guess I misunderstood it. You do not include Apprise right? So I need the webhook URL option but it does also not work with Discord. Any working example for Discord / Telegram?

@tmknight
Copy link
Owner

tmknight commented Aug 6, 2024

Did you read the README?

@tmknight tmknight changed the title Possibility to exclude containers with a label Apprise Use Aug 6, 2024
@tmknight tmknight changed the title Apprise Use How to: Container Labels Aug 6, 2024
@tmknight tmknight closed this as completed Aug 6, 2024
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

No branches or pull requests

2 participants