Skip to content

fixed healthcheck for instances with traefik reverse proxy #202

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Daniel-Leer
Copy link

@Daniel-Leer Daniel-Leer commented Jun 2, 2025

Fixes issue #201.

Improved readme for ldap users and added troubleshooting guide.

Fixed healthcheck for instances with traefik reverse proxy

- added extra troubleshooting guide
- the "--fail" results in Traefik filtering this container on startup (probably due to delay of the webserver) and somehow never registering its labels
Comment on lines 116 to +117
HEALTHCHECK --interval=120s --timeout=10s --start-period=30s --retries=3 \
CMD curl --fail http://localhost:9000 || exit 1
CMD curl http://localhost:9000 || exit 1
Copy link
Owner

Choose a reason for hiding this comment

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

While I understand the rationale, I think it's better if we have a strict health check (ie, failing on 5XX or 4XX). Would it help if we bumped the start-period to something like 2min ?

# User checking their own entry
ldapsearch -H ldap://lldap-server:3890 -D "uid=someuser,ou=users,dc=domain,dc=com" -W -b "dc=domain,dc=com" "(uid=someuser)"
```
- check `LDAP_DN_PATTERN` filter to be complaint with your ldap service
Copy link
Owner

Choose a reason for hiding this comment

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

🌱 compliant ?

@tchapi tchapi self-assigned this Jun 3, 2025
@tchapi tchapi added the enhancement New feature or request label Jun 3, 2025
@tchapi tchapi force-pushed the main branch 2 times, most recently from cfd457d to ae56070 Compare June 12, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants