this post was submitted on 02 Nov 2023
53 points (98.2% liked)

Selfhosted

40023 readers
1224 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Yoddel_Hickory@lemmy.ca 11 points 1 year ago (2 children)

Podman, rootless containers work well, and there is no central process running everything. I like that starting containers on boot is integrated with systemd.

[–] qaz@lemmy.world 3 points 1 year ago (5 children)

How do you automatically start podman containers?

[–] Yoddel_Hickory@lemmy.ca 5 points 1 year ago

I use Quadlet, which is now merged in podman. The only issue I had with it is running system systemd services as other (rootless) users, I can't get it to create cid files that the users can access. In those cases only, I have to modify the generated services files, which defeats the purpose.

[–] lemmyvore@feddit.nl 3 points 1 year ago

That's how you do it, you have to write systemd config files for each container. And because it was cumbersome they've come up with third party tools that write them for you and launch the container. 😉

[–] witten@lemmy.world 2 points 1 year ago (1 children)

Since I use Docker Compose with Podman, I just make a single systemd service to run Docker Compose on boot, thereby starting all my containers at once.

[–] qaz@lemmy.world 1 points 1 year ago

That’s an interesting way to do it. Do you have everything in 1 compose file?

[–] Discover5164@lemm.ee 0 points 1 year ago (2 children)

i would like to try.. but as far as i know, there is no "docker compose up -d"

[–] MartianSands@sh.itjust.works 6 points 1 year ago

Podman supports docker compose just fine. You have to run it as a service, so that it can expose a socket like docker does, but it supports doing exactly that

[–] Yoddel_Hickory@lemmy.ca 4 points 1 year ago (1 children)
[–] Discover5164@lemm.ee 1 points 1 year ago

cool, thank you!