Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
oplkill@lemmy.world to memes@lemmy.worldEnglish · 2 days ago

When webdevs choosing port for their app

lemmy.world

message-square
52
fedilink
442

When webdevs choosing port for their app

lemmy.world

oplkill@lemmy.world to memes@lemmy.worldEnglish · 2 days ago
message-square
52
fedilink
  • Mora@pawb.social
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    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)

    • null@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

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

      • Mora@pawb.social
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 day 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😉

    • Jakeroxs@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I use Traefik already, but thank you! :)

      • Mora@pawb.social
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Also a great choice :)

        • Jakeroxs@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Got me curious on rootless vs root docker, there’s so much.

          • Mora@pawb.social
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            Since rootless docker is (mostly) a security improvement, here is a interesting list of other Docker realted security tips I like to consult: https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html

memes@lemmy.world

memes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Community rules

1. Be civil

No trolling, bigotry or other insulting / annoying behaviour

2. No politics

This is non-politics community. For political memes please go to [email protected]

3. No recent reposts

Check for reposts when posting a meme, you can only repost after 1 month

4. No bots

No bots without the express approval of the mods or the admins

5. No Spam/Ads

No advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

  • [email protected] : Star Trek memes, chat and shitposts
  • [email protected] : Lemmy Shitposts, anything and everything goes.
  • [email protected] : Linux themed memes
  • [email protected] : for those who love comic stories.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3.77K users / day
  • 8.17K users / week
  • 14.2K users / month
  • 30K users / 6 months
  • 1 local subscriber
  • 16.4K subscribers
  • 7.08K Posts
  • 183K Comments
  • Modlog
  • mods:
  • Tenthrow@lemmy.world
  • The Picard Maneuver@lemmy.world
  • The Picard Maneuver@startrek.website
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org