For those of you that use docker, how do you make sure your docker-compose.yml (and possibly .env) files stay current with the project’s ongoing updates? I’m sure there’s an easier way than what I’m doing which is manually getting the latest ones and checking the diffs in vscodium. And I’m sure some git magic already takes care of this but I’ve been slow in learning git beyond the VERY basics. Thanks!

  • dbkblk@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    3 months ago

    I don’t want to use automatic updates on self hosted projects but I subscribe on github / gitlab releases in my rss reader (FreshRSS) and update when I want to!

    • keksbaecker@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      Thank you for this idea. I wasn’t aware, that you can subscribe to an rss feed for releases on gitlab/github.

      I think that I will follow your approach.

    • raldone01@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      3 months ago

      Those damn pre-release notifications though!!! (Githubs fault for not implementing filtering)

  • themachine@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    3 months ago

    I don’t pay any mind to example compose files. My are all quite custom anyway. Only thing that matters is paying attention to changelogs and watching for breaking changes.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      3 months ago

      Same here.
      Read deployment documentation, configure compose to my standards, deploy, update where necessary to align with the update (e.g. remove an environment variable.

      The editing is done on my PC, then I open WinSCP or ssh into it (depending on my mood and amount of changes) and then apply the changes

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      PatchPanda

      I too saw PatchPanda on selfh.st and it is on my watch list. The only thing holding me back is that it isn’t out of beta yet. So, I’m waiting on other selfhosters to plow that field before I deploy. It does look like it would solve a lot of problems tho.

  • [object Object]@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    Other than keeping an eye on their changelog or waiting until it breaks, I don’t think you can do anything about that. I do have automatic update, but the config rarely changes from my experience.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    I have automatic updates through a watchtower fork, so I just leave it alone until it breaks, then I go to the project site to see what changed. This has happened maybe twice in the last couple years.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Hope you have backups.
      Broke my neck a few times (I currently am waiting out the jellyfin patches and stay on 10.10.7 (i think))

  • Mora@pawb.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    I deploy and update my service similiar to this fantastic guide: https://nickcunningh.am/blog/how-to-automate-version-updates-for-your-self-hosted-docker-containers-with-gitea-renovate-and-komodo

    Basically I run Komodo, which pulls a git repo. Renovate opens a PR (and most of the time the changelog is included, so I can quickly check what happened) for new versions. Once merged a webhook fires to tell Komodo to pull the new version.

    I really recommend this approach now. Once setup it is very automatic, but not to the point of YOLO-automation like Watchtower and :latest 😅

    • Lka1988@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      3 months ago

      This is the kind of attitude that drives people away from open source.

      Yes, people should read the manual, but at some point they will have questions, and there are a lot of projects that aren’t clear on certain things. Such as YAML changes.

    • Nawor3565@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      I cannot recall a single self-hosted software documentation that mentions how to keep the docker config file up to date. Why bother wasting 5 seconds writing such an unhelpful comment

      • shnizmuffin@lemmy.inbutts.lol
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        3
        ·
        3 months ago

        Tell me you don’t read the manual without saying you don’t read the manual.

        I can recall a few! Mastodon. Lemmy. PiHole. Penpot. Mealie. Uptime Kuma.

        They all mention required steps to upgrade between releases, including what to do to your docker installations and environment variables.