• ShortN0te@lemmy.ml
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    1
    ·
    7 months ago

    Who the hell is pulling the docker-compise.yml automatically every release? I find myself already crazy by pulling the latest release but the compose file is just a disaster waiting to happen.

    • barbara@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      7 months ago

      Especially since the original doesn’t care about selinux and it would overwrite everything.

      And it doesn’t specify a repository which breaks auto updates of podman

    • Lem453@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      7 months ago

      Complete insanity.

      Then again it seems like people were using a docker volume to save all their precious photos rather than a mount point on the host. Also seems insane to me.

      • jvh@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        What’s the difference? The docker volume, on my setup anyway, is in /mnt/md0/docker-data/immich_upload/_data/

        It’s still a directory on the host either way? Although I guess if it’s a mount point it won’t get removed when removing volumes in docker.

        • Lem453@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 months ago

          That last point is the important one. For important data, I want the setup to be as easily accessible and system agnostic as possible.

  • barbara@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    7 months ago

    I mounted that volume the first time I opened immich’s compose file, glad they changed it =)

    • Lem453@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 months ago

      Exactly this, my docker host has a folder for docker data. In there are sub folders for each docker app. Borg back grabs the entire docker data folder and backs it up.

      If there are any issues, I can easily see all the files.

      I have no idea how people trust things like docker volumes with valuable data without the ability to just see into the filesystem easily.

      • barbara@lemmy.mlOP
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 months ago

        The datbase files were saved in an internal docker directory and the breaking change is that the location is now different, outside of docker.

  • Avid Amoeba@lemmy.ca
    link
    fedilink
    English
    arrow-up
    10
    ·
    7 months ago

    I was surprised to see the default compose file not force the user to specify an external directory for the database.

  • Lem453@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    7 months ago

    Who was pulling the dicker compose and just straight up running the GitHub version on their server. That seems crazy. Even pulling :latest tag seems crazy to me but this is another level.

    This change is only breaking if you are running someone else’s docker compose on your server without looking at it.

    Also who was running their entire photo album in a docker volume rather than a mount point on the host. Another insane decision. To be fair, the default docker compose never should have had that. It should have been a mount point right from the start.

    • CriticalMiss@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      7 months ago

      I don’t run Immich specifically but all other software I run is on :latest tags and unattended-upgrades on Debian. It works so, why bother?

      • Lem453@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 months ago

        Mainly because of the number of things I have that I rely on every day and definitely don’t want to break until I’m ready to upgrade it and have time to fix it if it does break.

        I know many do use :latest but having a service break while I’m away or travelling really sucks

          • Lem453@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 months ago

            It’s not unusual for an update to have breaking changes that require some manual intervention to fix.

            If you are on latest, it can also be hard to know which version you used to be on if you want to roll back.

            For important things, I used specific version tags and then check the release notes before upgrading.

          • Lem453@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            7 months ago

            Ok…so it should be easy to understand why for many people :latest is not a good idea

  • 5PACEBAR@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 months ago

    Me, an intellectual, who was already mounting the database data folder to the host filesystem.

  • Railcar8095@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    7 months ago

    I really wish they get to the point where we can expect long term with no breaking changes. I love it but I have been burnt twice, which is not a lot, but it was very annoying both times

  • rambos@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    First time im not completely sure how to proceed with update. This part is unclear to me:

    Unfortunately there isn’t a “proper” way to export a docker volume. The recommended method is to mount the volume and the directory (you want to copy your data to) to an arbitrary container, get a shell inside that container and copy the folder manually.

    I know how to stop the container and dump db, but need some help here

  • quaff@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    Pretty simple to switch (if you have a little docker experience). Create a folder (e.g. ./postgres), add the folder as a volume in the postgres portion of the compose file (maybe something like /db), then run just the database with newly mounted folder, shell in, and copy everything from the Postgres folder to this new folder. After that, swap mounts so the new folder is used as Postgres db and you’re good. If something went wrong, the pgdata volume is still there to switch back to.