this post was submitted on 14 Aug 2025
121 points (98.4% liked)

Selfhosted

60810 readers
482 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
you are viewing a single comment's thread
view the rest of the comments
[–] piyuv@lemmy.world 38 points 11 months ago (19 children)

I use homepage and pretty happy with it. “Drag and drop configuration, no yaml” actually put me off.

[–] semperverus@lemmy.world 6 points 11 months ago (15 children)

I wish we would all start switching over to JSON for configuration files. It's so much easier to parse, and you can't screw it up with too many spaces or not enough.

[–] lightnegative@lemmy.world 6 points 11 months ago (4 children)

I used to think that until I figured out yaml and now yaml isn't so bad.

It helps that text editors know what yaml is now so insert spaces when you hit tab etc

[–] tuhriel@infosec.pub 5 points 11 months ago (2 children)

My biggest gripe with yaml (especially in docker-compose files) is that l, for me at least, it is absolutely not clear when I need to add dahes (-) in front of multiple entries and when it's just linebreaks.
And there are no easy accessible docker-compose validators...

[–] moonpiedumplings@programming.dev 3 points 11 months ago (1 children)

Try the yaml language server by red hat, it comes with a docker compose validator.

But in general, off the top of my head, dashes = list. No dashes is a dictionary.

So this is a list:

thing:
    - 1
    - 2

And this is a dictionary:

dict:
    key1: value1
    key2: value2

And then when they can be combined into a list of dictionaries.

listofdicts:
    - key1dict1: value1dict1
    - key1dict2: value1dict2
      key2dict2: value2dict2

And then abother thing to note is that yaml wilL convert things into a string. So if you have ports 8080:80, this will be converted into a string, which is a clue that this is a string in a list, rather than a dictionary.

[–] tuhriel@infosec.pub 1 points 11 months ago

That actually makes sense...thank you!

load more comments (1 replies)
load more comments (11 replies)
load more comments (14 replies)