Docker Run to Compose
Convert supported docker run options into Docker Compose YAML for repeatable container configuration.
How to use
- Paste your input or load the example below.
- Adjust the options, then select “Convert command”.
- 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