I am very new to using docker. I have been used to using dedicated VM’s and hosting the applications within the servers OS.

When hosting multiple applications/services that require the same port, is it best practice to spin up a whole new docker server or how should I go about the conflicts?

Ie. Hosting multiple web applications that utilize 443.

Thank you!

  • earthling@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    This is the correct answer.

    I run several containers that offer up http/s and they obviously can’t all use 80/443. Just adjust the left side of that port setting and you’re good.

    That plus a reverse proxy for offering these services up over the public internet, if you choose to do so, is a killer pair.

    • Haui
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      One addition to this: I actually run those in my private setup since I have highly sensitive data on there. Even if you’re not opening them, reverse proxy works wonders. :)