Dokploy / Dokploy/dokploy

Feature Request: Convert docker run commands to docker-compose

Open
#1,291 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

What problem will this feature address?

A feature of dockge, which looks really helpful is converting a docker run ... command to a docker-compose file.

This would make it a lot smoother to deploy a random dockerized app from somewhere, as they often suggest docker run commands on their repositories/websites.

Describe the solution you'd like

A button next to the text field for editing a raw compose file called "Create from run command" or so – when clicking on it, a popup with a text input is shown that the user can paste the run command into.

When clicking "convert" in the popup, the converted compose yaml is inserted into the raw compose editing text field.

Describe alternatives you've considered

There's not alternative except converting manually or using external websites, I think.

Additional context

The composerize package would make implementing this very trivial.

Will you send a PR to implement it?

No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the raw compose-file editor and the UI control that sits beside it, then review how popups and compose content are handled. Check whether the composerize package fits the project; done means a user can paste a docker run command, convert it, and see the resulting YAML inserted into the raw compose editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, typescript
Domain
devops, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.