Docker run to Compose

Convert a run command into a Compose file.

0 charactersUTF-8
Waiting for input
How it works & limits

How to use this tool

Convert a run command into a Compose file.

Enter your content or open a file, then select Run.

Example input

docker run --name api -p 8080:80 -e NODE_ENV=production -v ./data:/data --restart unless-stopped nginx:alpine

Local processing

Your input stays in this browser. Drafts are kept in page memory while switching tools, and disappear on reload.

Text is limited to 1 million characters. Regex runs in a worker, capped at 200,000 characters, 1,000 matches and 1.5 seconds. Inputs above 100,000 characters use manual refresh.

The first page load and on-demand modules require network access. A complete offline cache is not included.