cm0002@piefed.world to Selfhosted@lemmy.worldEnglish · 9 months agoHomarr - A modern and easy to use dashboard. 30+ integrations. 10K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.homarr.devexternal-linkmessage-square31fedilinkarrow-up1125arrow-down12
arrow-up1123arrow-down1external-linkHomarr - A modern and easy to use dashboard. 30+ integrations. 10K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.homarr.devcm0002@piefed.world to Selfhosted@lemmy.worldEnglish · 9 months agomessage-square31fedilink
minus-squaremoonpiedumplings@programming.devlinkfedilinkEnglisharrow-up3·9 months agoTry 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.
minus-squaretuhriel@infosec.publinkfedilinkEnglisharrow-up1·9 months agoThat actually makes sense…thank you!
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 - 2And this is a dictionary:
dict: key1: value1 key2: value2And then when they can be combined into a list of dictionaries.
listofdicts: - key1dict1: value1dict1 - key1dict2: value1dict2 key2dict2: value2dict2And 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.That actually makes sense…thank you!