this post was submitted on 26 Sep 2023
77 points (90.5% liked)

Selfhosted

39640 readers
281 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
all 50 comments
sorted by: hot top controversial new old
[–] ikidd@lemmy.world 2 points 1 year ago

Oh, well that's simple...

[–] shadowbert@kbin.social 2 points 1 year ago (1 children)

Dependencies within unrelated projects (ie, sharing a single database container for a few unrelated apps) is something that would be pretty handy, and is missing from compose.

Auto-updates are cool - but also dangerous... I think there's something in running watchtower manually like I have been - when something breaks straight after, I know the cause.

[–] jjakc@lemthony.com 1 points 1 year ago (1 children)

Couldn't you just create a compose file for a database separately?

[–] shadowbert@kbin.social 1 points 1 year ago

I don't really understand what you're suggesting. Having a seperate compose file for your database would "work", but you'd lack any of the dependency handling.

[–] Rearsays@lemmy.ml 1 points 1 year ago (1 children)

I don’t trust anything related to red hat

[–] Feliberto@programming.dev 10 points 1 year ago (4 children)

Genuine question here: why?

[–] Rearsays@lemmy.ml 9 points 1 year ago (1 children)

It’s just morally rough that they basically said they don’t get anything of benefit from contributing to open source despite really owing their start to it

[–] Feliberto@programming.dev 4 points 1 year ago

Thanks for the honest answer.

load more comments (3 replies)
[–] garrett@infosec.pub -1 points 1 year ago

Honestly, this is kinda making me wanna redeploy a couple app stacks I have on a VPS. Hmm.

[–] thevoiceofra@mander.xyz -5 points 1 year ago (3 children)

Interesting. But what If I'm not using CoreOS? Also RedHat fucked up by using YAML for configuration.

[–] kylian0087@lemmy.world 23 points 1 year ago (4 children)

What is wrong with YAML for configuration? It is much more easy to read then say json.

[–] brian@programming.dev 3 points 1 year ago

There is some surprising behavior with some of the features of yaml, mostly arising from the fact that it looks nice to read. Here's a list of things that you can avoid to avoid a lot of the pitfalls: https://hitchdev.com/strictyaml/why/ . I haven't actually used strictyaml, but the arguments it presents are pretty solid and some are things I've run into in real environments

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

JSON was never meant for configuration.

YAML has a ton of footguns.

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

YAML is way too bloated of a standard and has a ton of inconsistencies between implementations, despite the widespread reputation of simplicity. It is easy to read as long as you limit yourself to a fraction of its capabilities and err on the side of caution when it comes to escaping characters (especially when number literals are involved, or booleans for that matter). As far as alternatives go, I prefer TOML for simple key=value configs, but it has its own issued and is nowhere near as featureful, for better or worse.

[–] thevoiceofra@mander.xyz 0 points 1 year ago* (last edited 1 year ago)

If you're just reading configs then yeah, it's superior. If you're maintaining big complex configurations, possibly for multiple machines, you need something to reduce boilerplate. Jsonnet, nickel or nix are excellent here. So the best way is to use one of those, generate yaml, and deploy. Saves you a lot of headaches but it's one more moving thing in your pipeline which can break.

[–] losttourist@kbin.social 14 points 1 year ago* (last edited 1 year ago) (3 children)

what if I'm not using CoreOS?

Podman runs on any distro (or more strictly: any distro that uses systemd). It's essentially a FOSS alternative to Docker.

load more comments (3 replies)
[–] poVoq@slrpnk.net 3 points 1 year ago

It's built into Podman 4.x, so you can easily install it on any distro (with Systemd).