I am pretty new to the whole self-hosted thing and want to ensure I have the latest security fixes even for my tiny instance.

I installed my instance using Ansible and am trying to find the steps to update my lemmy-ui version but I am not having a ton of luck. Is there documentation or some steps I can take to update?

  • Meow.tar.gz@lemmy.goblackcat.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Yes, go to your Lemmy instance and run a docker-compose pull. This should pull the latest updates for you. Before pulling the latest instance, I would recommend running docker-compose down first. This worked for me but I set my instance up without using Ansible. That much said, I believe it should work for you as well. You might need to edit the docker-compose.yml file and specify the version as latest.

    • robotrash@lemmy.robotra.shOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 year ago

      Is there a way to specify latest in the yml file or should I manually enter the latest version?

      Edit: don’t foolishly try asking questions from your Lemmy instance after running docker-compose down…

      • Meow.tar.gz@lemmy.goblackcat.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Yes there is. To do so look for the line with image: statement and do something like image: dessalines/lemmy-ui:latest Try this. You may not even have to do that. First try the plain old docker-compose pull. Since now enough time has elapsed, I am guessing that it should pull the latest image without having to edit the docker-compose.yml file.

          • Meow.tar.gz@lemmy.goblackcat.com
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 year ago

            The only unasked question is the silly one. If you scroll down to the bottom of your Lemmy instance in the web browser, you should see the current one you’re on. It should like something like this:

            • robotrash@lemmy.robotra.shOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              1 year ago

              I think I’ve got it but I noticed it doesn’t show the UI version like yours?

              https://lemmy.robotra.sh

              Edit: I did have to update the yml to use latest. I’m not sure if it’s something with Ansible but when I followed the update steps to update using Ansible it seems to hardcode the version in, not sure where it’s pulling that from.

          • robotrash@lemmy.robotra.shOP
            link
            fedilink
            English
            arrow-up
            7
            ·
            1 year ago

            I am glad they helped! I am new to this as well so after piecing all the steps together I wanted to make sure it was easier for other first timers.

            • AmosBurton_ThatGuy
              link
              fedilink
              English
              arrow-up
              4
              ·
              1 year ago

              Just wanted to say, I love people with attitudes like yours. Figure out something challenging and then immediately put your knowledge to use by helping others through the challenges you just faced.

              Kudos 👍

                • AmosBurton_ThatGuy
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  Regardless of why you do it, I, and I’m sure many others are very grateful for your contribution! Thank you!