lucaslorentz / caddy-docker-proxy

Caddy as a reverse proxy for Docker
MIT License
2.61k stars 163 forks source link

Redirecting to IP? #608

Closed lockheed closed 2 months ago

lockheed commented 2 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 2 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.