[Accepted] Syntax highlighting in YAML editor

This is simple,
YAML editor for apps should have syntax highlighting.
Even this forum has it.

services:
  nginx:
    image: nginx
    ports:
      - 8080:80

For display, but not for editing that I’ve ever seen.

Install Dockge and you’ll have it.

vim should do it.

If it doesn’t, type in :syntax enable
It even auto-indents for me.

This is the least of the problems with the built-in yaml editor. The whole thing is a mess. It doesn’t even save your yaml file properly: it reformats it, deleting any comments or whitespace you might have in it. Even worse, updating apps in it generally doesn’t work: you have to delete the app, and then re-install it. And you can’t even have an .env file with it. The whole thing is absolutely terrible. Dockge is the solution here, but it’d be better if they copied all the functionality of Dockge into the built-in service.

Thanks, seems like Dockge it is.

I guess iX could just send people to Dockge instead of making it’s own YAML editor if there is so much work to make it usable.
Or copy it’s functionality to Truenas like you say but I don’t think that’s really priority now.

image

Portainer does it very well. Try Portainer it’s very good.
Personally I installed Portainer with Truenas and all my other applications with Portainer.

This will be tracked here https://ixsystems.atlassian.net/browse/NAS-134028