Inaccessible when running in Docker Compose (Portainer) #2515
|
I have created the following Docker Compose file: And everything seemingly starts up just fine with the following in the console log: However, when accessing What am I missing here? It seems like this is a pretty basic setup, so I feel like I must be missing something very simple. Also, seeing as the same error is returned both for the reverse proxy and accessing it directly I don't think it is the reverse proxy's fault (and the reverse proxy works for several other sites). |
Replies: 2 comments 14 replies
|
TL;TR: Seq UI and API listens on port 80 Long answer, replace $ curl http://localhost:5341/health
{"status":"healthy","description":"The Seq node is in service."}Alternatively, or even better, just publish ports:
- "80:80/tcp" # API, UIthen both, Seq UI and API will be accessible: Publishing ports:
- "80:80/tcp" # UI, API
- "5341:5341/tcp" # Ingestionmeans publishing the ingestion port, what the Seq configuration confirms too $ docker container exec seq cat /data/Seq.json | head -n 25
{
"api": {
"ingestionPorts": [
5341,
45341
],
"canonicalUri": null,
...
"ingestionPort": null,
"listenUris": [
"http://localhost:80",
"https://localhost:443",
"http://localhost:5341",
"https://localhost:45341"
],The container log line may be confusing suggesting that both, |
|
Thanks for the reply, and you are absolutely correct that the I assumed both to be correct! :) Does that mean I should expose both 80 and 5341 in my reverse proxy, or can loggers also use 80 so that I only have to care about that? |
Yes
Yes. Your proxy forwards the requests to Seq port(s) as well as handles TLS termination (in case you hit your proxy at 443).
AFAICT, yes.
In case of deploying Seq to Kubernetes, the official Helm chart provides baseURI setting which is directly mapped to
SEQ_API_CANONICALURIvariable.I can confirm that I don't set the
baseURIfor any of my…