A web server with a port and a volume
docker run -d --name web -p 8080:80 -v ./data:/app/data nginx:latest
A `services.web` block with image, container_name, ports and volumes set accordingly.
Paste a docker run command and get the equivalent docker-compose.yml service.
Was this tool useful?
A `docker run` command with a dozen flags is hard to version, review or hand to a teammate — a Compose service definition is all three. This reads the flags and produces the equivalent service, never executing the command itself.
docker run -d --name web -p 8080:80 -v ./data:/app/data nginx:latest
A `services.web` block with image, container_name, ports and volumes set accordingly.