DEVtoy
Language · English

Docker Run to Compose

Convert supported docker run options into Docker Compose YAML for repeatable container configuration.

How to use

  1. Paste your input or load the example below.
  2. Adjust the options, then select “Convert command”.
  3. Review the result, then copy or download it.

No uploads. No account. Processing stays in your browser.

Example input
docker run -d --name web --restart unless-stopped -p 8080:80 -e NODE_ENV=production -v web-data:/var/lib/data --network backend nginx:1.27-alpine

Related tools