In your docker-compose.yml
, you have caddy:2.4.3
. That’s not the latest. The latest is 2.4.5
. Please upgrade!
As @benatkin has said, this won’t work with vanilla Caddy. Caddy is an HTTP server and proxy, but SSH is not HTTP, it’s communication over TCP.
The caddy-l4
plugin adds support for proxying TCP/UDP, but does not have Caddyfile support at this time, so you’d have to use a JSON config. If you have other HTTP sites you still need to serve, you can run caddy adapt --pretty
to adapt your Caddyfile to JSON, then augment your JSON config with what you need for caddy-l4
.