Docker Compose for tomsquest/docker-radicale
Generated docker-compose.yml ready to deploy. Tweak indentation, volume bindings, or convert another command below.
How to Convert Docker Run to Docker Compose
Migrate from imperative terminal commands to declarative multi-container infrastructure in 3 simple steps.
Paste Docker Run Command
Enter any standard docker run command containing port mappings (-p), volumes (-v), environment variables (-e), restart policies, and network modes.
Automated YAML Parsing
Our parser translates Docker CLI flags into standardized docker-compose.yml syntax. Customize indentation spacing (2s, 4s, 6s) or toggle external volume declarations with one click.
Deploy with Compose
Save the output as docker-compose.yml in your project folder, or fetch it via wget/curl. Start your containerized service instantly with docker compose up -d.
Docker Run Flags to Compose Property Reference
Comprehensive guide to how common Docker CLI flags map directly to Docker Compose definitions.
| Docker CLI Flag | Docker Compose Key | Compose Syntax Example |
|---|---|---|
| -p, --publish | ports |
ports: |
| -v, --volume | volumes |
volumes: |
| -e, --env | environment |
environment: |
| --env-file | env_file |
env_file: |
| --name | container_name |
container_name: web_service |
| --restart | restart |
restart: unless-stopped |
| --net, --network | network_mode |
network_mode: host |
| --privileged | privileged |
privileged: true |
| --gpus | deploy.resources.reservations.devices |
deploy: |
| --ulimit | ulimits |
ulimits: |
| --mount | volumes |
volumes: |
Frequently Asked Questions
Everything you need to know about Docker Run to Docker Compose conversion.
docker run is an imperative command used to start a single container from the terminal. Docker Compose uses a declarative YAML configuration file (docker-compose.yml) to define, configure, and orchestrate multiple containers, networks, volumes, and secrets together with version-controllable reproducibility.
docker inspect --format "$(curl -s https://run.docker-compose.net)" YOUR-CONTAINER-ID
This will generate the original
docker run command for that container, which you can paste directly into docker-compose.net to create your docker-compose.yml file.
sitemap.xml) and won't appear in public directory listings.
rc4tbg and rc4tat). Then enter the secondary ID into the Merge ID field in the toolbar, or navigate directly to https://docker-compose.net/rc4tbg+rc4tat to combine both services into one unified multi-container YAML file.
docker-compose.yml file itself. Bash environment substitutions like $(pwd) or `pwd` are not evaluated by Compose. Instead, use relative paths such as ./logs:/app/logs or standard named volumes.