you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago (6 children)

Welcome to the community then :) For rootful Docker you are correct - the inside port can be 80 and you can expose it on whatever port you want (ideally you expose it only via reverse proxy and not by port - I can recommend Caddy-Docker-Proxy for that)

  • source
  • parent
  • hideshow 6 child comments
  • [–] 1 point 1 year ago (1 child)

    If you're using a reverse-proxy, why bother mapping ports at all?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago* (last edited 1 year ago)

    Absolutely, it is not necessary if the proxy can reach the service in other ways (e.g. a shared network). Some non-http services don't like to be proxied though. Some constellations where the proxy is not on the same host as the containers may also make it necessary. My answer was based on the possibility to not have the same inside/outside port, not necessarily the need though😉

  • source
  • parent
  • [–] 1 point 1 year ago (3 children)

    I use Traefik already, but thank you! :)

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)