Running cockpit/ws container behind nginx-proxy container #17567
Funky185540
started this conversation in
Show and tell
Replies: 1 comment
-
See #5239 (comment) Working with podman 4.3, a native cockpit and a container nginx. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I'm attempting to run the cockpit container via docker (not podman) on a Debian 10 host. As an additional "challenge" I'd like it to run behind an nginx-based reverse proxy, which is handled by the nginx-proxy container.
To handle the networking I've created a bridged network using
docker network create proxy-net
which I use to connect all containers to the proxy. Now I have only 2 containers in that network: The proxy and cockpit.I have seen there are various resources regarding proxies and cockpit:
And in addition there's this great wiki page here:
So I have attempted to follow these instructions to make it run - but without success. So far I have managed to establish that when I enter the container running cockpit, I can
curl localhost:9090
and get some contents. If, however, I enter the proxy container and attempt tocurl cockpit:9090
I receive a "Connection refused". This is entirely regardless of how I try it:It really doesn't matter much. On the cockpit side of things I have played with these options:
AllowUnencrypted
,Origins
andProtocolHeader
. Here's thecockpit.conf
I work with:The
Origins = 0.0.0.0
was my last desperate attempt to make it work, inspired by this comment.So the short version of the story is: I can't even curl the cockpit UI from another container, much less from an external host through my TLS-terminated proxy. I'd like to have some guidance here on what exactly is going wrong.
I'll provide a MWE after I have scraped all unrelated stuff from my configs. In the meantime you can see from this PCAP (
cockpit.zip) that the cockpit ws doesn't even bother to setup a TCP connection.
For clarification:
And here's the
docker-compose.yml
for the cockpit-ws container:Hope this helps!
Beta Was this translation helpful? Give feedback.
All reactions