Hi and good morning.
Hi and good morning.
I have a strange issue. I want to add a healthcheck to my docker-compose setup. The docs say, that there is an
/api/public/health
endpoint that I can request. Thing is, that works when I check the endpoint from the outside (i.e. my host on which the docker container runs).
But as soon as I try to request that uri from within the container (where docker compose runs the healthcheck), I get an error.
I connect to /bin/sh
in the container. default user is nextjs
:
So, why can I reques that url from outside of the container, but not from within?2 Replies
It's not about authentication. I also send the request from the outside without any authentication info.
Also, using
127.0.0.1
or 0.0.0.0
instread of localhost doesn't change anything
What the... when I use the container name it works 🤯Have you tried setting the HOSTNAME env? This sometimes resolves docker networking issues depending on your environment.
https://langfuse.com/docs/deployment/self-host#troubleshooting
Self-Hosting Guide - Langfuse
Self-host Langfuse in your infrastructure using Docker.