this post was submitted on 18 Dec 2025
42 points (95.7% liked)

Selfhosted

60482 readers
633 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.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

For user-readable files or media I store them under ~/docker/data, and for everything else I store them under ~/docker/stacks/[service] where ~/docker/stacks is maintained by Dockge.

Is there a better way to do this?

you are viewing a single comment's thread
view the rest of the comments
[–] DasFaultier@sh.itjust.works 21 points 6 months ago (2 children)

I tend to use /opt/[service]/, like for example /opt/forgejo/. It's outside of any user's Homedir and it seems to fit into what the FHS 3.0 (Filesystem Hierarchy Standard) defines.

[–] solidgrue@lemmy.world 8 points 6 months ago

I use /srv/[service] for services by the same logic, and leave /opt for local user apps. It's kind of a coin toss though. On another day I night have decided differently.

[–] eli@lemmy.world 2 points 6 months ago (1 children)

I do this as well. Though if I'm deploying a stack(grafana+prometheus+cadvisor) then it all goes under a single folder like /opt/stackname/

But if I'm running multiple services that are mostly separate or not in the same stack then they go in their own folders like /opt/nginx/ and /opt/grafana/

[–] DasFaultier@sh.itjust.works 2 points 6 months ago

Yes, that's what I meant, thanks for the clarification.