38

Has anyone got some experience/advice for choosing between the options? It seems like they are:

My usecase is just to have a local single instance for testing apps against. I prefer to spin stuff up in Docker on the homelab.

you are viewing a single comment's thread
view the rest of the comments
[-] Moonrise2473@feddit.it 7 points 2 years ago

I set garage via docker and it was not impossibly hard.

Main problem is that there isn't an admin panel and you can't login to the docker container via docker exec, so you have to write some python (or other language of your choice) to send requests to the API port to:

  1. Set the layout of your server
  2. Create an user
  3. Create a bucket
  4. Assign that bucket to your user
[-] palitu@aussie.zone 3 points 2 years ago

Postman is great for sending api queries.

[-] johntash@eviltoast.org 3 points 2 years ago

You can use docker exec with garage docker image.

I'm on mobile but I think you just need something like: docker exec containerid ./garage stats

[-] thirdBreakfast@lemmy.world 3 points 2 years ago

This is correct, I already installed the minio cli, but when I came back and read this, I tried it out and yes, once garage is running in the container, you can

alias garage="docker exec -ti <container name> /garage"

so you can do the cli things like garage bucket info test-bucket or whatever. The --help for the garage command is pretty great, which is good since they don't write it up much in the docs.

[-] Moonrise2473@feddit.it 2 points 2 years ago

Ah maybe I was missing the ./ , it said garage not found on path (on mobile, can't try)

[-] thirdBreakfast@lemmy.world 2 points 2 years ago

Thanks. I ended up going with Garage (in Docker), and installed the minio client cli for these tasks.

this post was submitted on 14 Sep 2024
38 points (95.2% liked)

Selfhosted

62096 readers
141 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS