this post was submitted on 13 Jun 2023
15 points (100.0% liked)

Lemmy Support

4654 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hey everyone, new instance admin here after following the Ansible setup.

I'm curious about how to switch from block storage for images to object storage - it's marked as possible in the documentation but I'm not sure how to do so when the application is dockerized (as it is on a standard install.)

Any other instance admins have advice?

all 10 comments
sorted by: hot top controversial new old
[–] bruhduh 4 points 1 year ago (1 children)

Is it possible to hook up pixelfed to work with? since it is part of fediverse there should be something

[–] [email protected] 3 points 1 year ago

A few days ago I heard from a BeeHaw.org admin that their whole instance only takes 25GB right now. But it's always good to be prepared to scale up I suppose.

[–] [email protected] 2 points 1 year ago (1 children)

I mounted an S3 bucket to my VPS using s3fs, and set that as the folder for pict-rs. I haven't noticed any issues with this method yet.

It might also be possible to do using docker storage drivers, but I haven't looked into that.

[–] Crackhappy 1 points 1 year ago (1 children)

Hmm. Hooking fs willy nilly might present some unexpected challenges.

[–] [email protected] 1 points 1 year ago

Hmm, I wasn't aware yet that pict-rs has built in S3 support, I was looking at docs for an older version. For anyone else looking for the docs, you can find them for v0.3.3 here.

[–] PriorProject 2 points 1 year ago (1 children)

Did you look at the pict-rs filesystem command? I haven't tried it but from the pict-rs docs it looks like it does exactly what you want.

[–] [email protected] 3 points 1 year ago (1 children)

It appears the version of pict-rs used in the ansible build is an older one with different commands. I didn't choose to upgrade it for risk of messing with Lemmy Compatibility.

[–] PriorProject 3 points 1 year ago* (last edited 1 year ago)

Oh, I did read that in a Lemmy GitHub issue but forgot until you reminded me. They haven't upgraded yet. I have no idea if it's a smooth/compatible upgrade or if the Lemmy devs need to update code to remain compatible. If you don't want to go wandering into potential breakage, yeah, you probably want to sit tight until the version of pict-rs gets updated. Hopefully there's a simple migration available then though.

[–] [email protected] 0 points 1 year ago

You figure it out yet? I'm going to be doing the same soon :)