dockge icon indicating copy to clipboard operation
dockge copied to clipboard

Single lines in Compose.yaml are edited by dockge unnecessarily

Open jackspiering opened this issue 8 months ago • 1 comments

⚠️ Please verify that this bug has NOT been reported before.

  • [x] I checked and didn't find similar issue

🛡️ Security Policy

Description

Dockge change single lines of a compose.yaml. This is not a problem for how the container works, but it can be annoying that the compose.yaml is tweaked.

👟 Reproduction steps

  1. Create a new stack
  2. add a service with a single line (healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"])
  3. Deploy the stack
  4. Dockge changed healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"] to test: - CMD - wget - --spider - -q - http://127.0.0.1:41234/healthz

👀 Expected behavior

Keep the original yaml contents: test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"])

😓 Actual Behavior

Changes the compose.yaml to: test: - CMD - wget - --spider - -q - http://127.0.0.1:41234/healthz

Dockge Version

1.5.0

💻 Operating System and Arch

Debian GNU/Linux 12 (bookworm) x86_64

🌐 Browser

Arc 137.0.7151.69

🐋 Docker Version

Docker 28.2.2

🟩 NodeJS Version

N/A

📝 Relevant log output

N/A

jackspiering avatar Jun 11 '25 11:06 jackspiering

I would not call it a bug, but it might be cool to have an option to turn on/off this behavior.

dMopp avatar Oct 25 '25 08:10 dMopp