Skip to content

Single lines in Compose.yaml are edited by dockge unnecessarily #815

@jackspiering

Description

@jackspiering

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions