|
|
|
|
|
by stevekemp
2220 days ago
|
|
The guide exposes the back-end webserver to the public, by accident. Instead of: ports:
- "2368:2368"
expose:
- "2368"
The author probably just needs: ports:
- 127.0.0.1:2368:2368
That way "localhost:2368" will be routed to 2368 inside the container, such that caddy can access it, but not accessible externally, as it is right now: $ curl -v https://sphuff.com:2368
Though of course the ideal solution would be to run caddy as another container, and link them together. |
|
Also why the heck doesn't redis have auth by default. It's so ridiculously easy to get "hacked" and inadvertently run a crypto miner.