24
submitted 2 years ago* (last edited 2 years ago) by Die4Ever@programming.dev to c/lemmy@lemmy.ml

instead of

image: postgres:16-alpine

use

image: pgautoupgrade/pgautoupgrade:16-alpine

Then all the upgrade instructions of backup->update->import backups go away and all you need to do is restart the docker container. (still keep backups though!)

Reference: https://github.com/LemmyNet/lemmy/pull/4892/files

Since that pull request was merged, this will simplify future updates like 0.19.6 or 0.20.0

top 3 comments
sorted by: hot top new old
[-] shnizmuffin@lemmy.inbutts.lol 14 points 2 years ago

We just had a global IT meltdown because an update wasn't vetted properly and you have the audacity to suggest this for database infrastructure.

[-] exu@feditown.com 4 points 2 years ago

Since you're using specific tags over just latest, it will only ever upgrade the major version to what you set.

And it won't change the tags magically, so you can test all of it in your separate dev environment before running it in prod.

[-] sabreW4K3@lazysoci.al 1 points 2 years ago

Not a fan, but it's merged already, so meh.

this post was submitted on 19 Jul 2024
24 points (90.0% liked)

Lemmy

14690 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 6 years ago
MODERATORS