this post was submitted on 25 Jul 2025
125 points (97.7% liked)

Selfhosted

49863 readers
504 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html

you are viewing a single comment's thread
view the rest of the comments
[–] k_rol@lemmy.ca 18 points 2 days ago (2 children)

I love the concept too and I just hope it will catch on much more than this. To convert your compose files you could use Podlet. I'm also working on converting it to JavaScript(PodletJS) so it's available in it-tools.

Go for Podlet though, really nice for command lines.

Sorry for all the links, I got overly excited πŸ˜†

[–] Botzo@lemmy.world 5 points 2 days ago

I used podlet on my compose file. I was a little disappointed in the limitations, as a lot of things like variable interpolation isn't available.

That said, the output made me wonder why I've waited! It was so much simpler than I imagined. It also helped demystify unit files a bit more.

[–] Fisch@discuss.tchncs.de 2 points 2 days ago (1 children)

Thank you for telling me about Podlet. I've been using podman-compose for all my containers but I've thought about converting them to systemd units. The only thing I'm unsure about is whether it'll still be easy to access the container files. Currently I have a containers folder with a folder for each service inside it. Inside that, there's the compose.yml and the folders with the container data. I map all container folders, with data that needs to be kept, to a folder that sits right next to the compose file. If it's just temporary data (like caches), I oftentimes map it to a volume because it doesn't matter if I lose it. Do you know if I can still do it like this (or in a similar way) if I use systemd units?

[–] Botzo@lemmy.world 1 points 1 day ago

The spec for quadlets has a few dedicated homes for the .pod, .container, etc. files. You can absolutely mount directories or files wherever (%h is $HOME for systemd unit files). See the Volume description for Container unit files: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#volume