Gathering detailed insights and metrics for composerize-ts
Gathering detailed insights and metrics for composerize-ts
Gathering detailed insights and metrics for composerize-ts
Gathering detailed insights and metrics for composerize-ts
A little tool to convert docker run/create commands into docker-compose.yml files.
npm install composerize-ts
Typescript
Module System
Node Version
NPM Version
71.4
Supply Chain
97.6
Quality
73.8
Maintenance
100
Vulnerability
98.2
License
TypeScript (93.32%)
JavaScript (6.68%)
Total Downloads
32,438
Last Day
37
Last Week
196
Last Month
1,104
Last Year
13,702
MIT License
5 Stars
319 Commits
1 Forks
1 Watchers
8 Branches
1 Contributors
Updated on Mar 17, 2025
Minified
Minified + Gzipped
Latest Version
0.6.2
Package Id
composerize-ts@0.6.2
Unpacked Size
154.79 kB
Size
21.31 kB
File Count
52
NPM Version
9.5.0
Node Version
18.15.0
Published on
Apr 04, 2023
Cumulative downloads
Total Downloads
Last Day
-33.9%
37
Compared to previous day
Last Week
-18.7%
196
Compared to previous week
Last Month
-12.1%
1,104
Compared to previous month
Last Year
-22.1%
13,702
Compared to previous year
20
This is a very small tool to convert docker run/create
commands into (hopefully) working docker-compose.yml
files.
composerize-ts can be run in the cli.
npm install composerize-ts -g
to install, and run as such:
1$ composerize-ts docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx
Docker run/create option | docker-compose equivalent | Remarks |
---|---|---|
--add-host | extra_hosts | |
--blkio-weight | blkio_config.weight | |
--cap-add | cap_add | |
--cap-drop | cap_drop | |
--cgroupns | cgroup | |
--cgroup-parent | cgroup_parent | |
--cpu-count | cpu_count | |
--cpu-period | cpu_period | |
--cpu-quota | cpu_quota | |
--cpu-rt-period | cpu_rt_period | |
--cpu-rt-quota | cpu_rt_quota | |
--cpus | cpus | |
--cpuset-cpus | cpuset | |
--device | devices | |
--device-cgroup-rule | device_cgroup_rules | |
--dns | dns | |
--dns-option | dns_opt | |
--dns-search | dns_search | |
--domainname | domainname | |
--entrypoint | entrypoint | |
--env/-e | environment | |
--env-file | env_file | |
--hostname | hostname | |
--expose | expose | |
--group-add | group_add | |
--health-cmd | healthcheck.test | |
--health-interval | healthcheck.interval | |
--health-retries | healthcheck.retries | |
--health-start-period | healthcheck.start_period | |
--health-timeout | healthcheck.timeout | |
--init | init | |
--interactive/-i | stdin_open | |
--ipc | ipc | |
--isolation | isolation | |
--label | labels | |
--link | links | |
--log-driver | logging.driver | |
--log-opt | logging.options | |
--mac-address | mac_address | |
--memory-swappiness | mem_swappiness | |
--name | container_name | |
--oom-kill-disable | oom_kill_disable | |
--oom-score-adj | oom_score_adj | |
--pid | pid | |
--pids-limit | pids_limit | |
--platform | platform | |
--privileged | privileged | |
--publish/-p | networks | adds a networks block as well |
--publish-all | not convertable to docker-compose | |
--pull | pull_policy | |
--read-only | read_only | |
--quiet | not convertable to docker-compose | |
--restart | restart | |
--rm | not convertable to docker-compose | |
--runtime | runtime | |
--security-opt | security_opt | |
--shm-size | shm_size | |
--stop-signal | stop_signal | |
--stop-timeout | stop_grace_period | |
--storage-opt | storage_opt | |
--sysctl | sysctls | |
--tmpfs | tmpfs | |
--tty/-t | tty | |
--ulimit | ulimit | |
--user | user | |
--userns | userns_mode | |
--volume/-v | volumes | |
--volumes-from | volumes_from | |
--workdir | working_dir |
You'll find the documentation in the docs folder.
pnpm install
pnpm run build
pnpm run test
No vulnerabilities found.
No security vulnerabilities found.