• Mora@pawb.social
    link
    fedilink
    arrow-up
    24
    ·
    2 days ago

    As long as it is configurable, ideally via env, I dont care about the port.

    This could be important for restricted Kubernetes clusters (or certain Gluetun configs). Don’t be Nextcloud with their default port of 80 in their Apache image with only hacky ways to change that. God, I hate Nextcloud. They are truly becoming the next Wordpress.

    • kassiopaea@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      Vaulwarden does this and I’m really frustrated that I have to cap_add NET_BIND_SERVICE in my rootless setup just to make my password server run.

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

        Are you sure you need that? I just added a —user to the docker run and it started just fine on port 80 in the container.

        • kassiopaea@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          23 hours ago

          I’m using podman, and I don’t like the practice of unnecessarily setting UIDs. NET_BIND_SERVICE is exactly the flag it needs to set port 80 and it doesn’t potentially complicate accessing the files for maintenance. Does your system have SELinux? If not, that might be why you don’t need it lol.

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

        Unless I am missing some obvious setting: Restricted Kubernetes doesnt work like that. You have to run the container with a non-root UID (usually something upwards of a million). Non-root users however can’t reserve ports below 1025. Nextcloud builds on the default php-apache image which comes with the default apache ports.conf (Listen 80).

        So now this has to be overwritten either by making a custom build (which may require creating a custom build pipeline) or by mounting a new config file (e.g. via ConfigMap) else it wont start. Both are an additional update risk which now has to be documented and checked before updating in addition to changes from the normal nextcloud changelog.

        Similiar issues probably appear with rootless docker/podman unless you add extra capabilities, which is not possible in restricted kubernetes settings.

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

          I know nothing about k8s, just started with a homelab using primarily docker in an Ubuntu LXC in proxmox and have been using the nextcloud image via docker compose on a different port by simply editing the compose to outwardly point to a different port, inside the docker container my understanding is it all still uses port 80, thereby causing no further issues with the application.