selfhostkit.dev · tools
docker run → docker-compose
Paste a long docker run command, get a clean
compose.yaml. Runs in your browser, nothing leaves your machine.
Open source ↗
docker run
compose.yaml
How it works
The converter parses your docker run command and maps each flag to its
docker-compose equivalent: -p → ports, -v →
volumes, -e → environment, --restart,
--network, --cap-add, labels, devices, and more. Multi-line commands
(with \\) and quoted values are handled. -d/--rm are
dropped, since compose runs detached by default.
Once you have your compose.yaml, run docker compose up -d. New to
this? Start with the self-hosting guide, and validate your
file with the YAML validator.