lucaslorentz / caddy-docker-proxy

Caddy as a reverse proxy for Docker
MIT License
3.06k stars 174 forks source link

Redirecting to IP? #608

Closed lockheed closed 7 months ago

lockheed commented 7 months ago

I am currently using NPM. 90% of redirects are to docker containers on the same machine, but 10% are redirected to another IP on a different LAN machine.

proxy

How can I achieve that with caddy-docker-proxy?

lockheed commented 7 months ago

I will answer myself. Two ways

  1. Through Caddyfile linked in caddy-docker-proxy docker-compose
  2. (Neater) defined in a caddy-docker-proxy docker-compose (or a portainer stack) with labels, like so:

image

Beautiful.