Compozify is a simple (yet complicated) tool to generate a docker-compose.yml file from a docker run command.
Download a binary suitable for your OS at the releases page.
curl -sfL https://raw.githubusercontent.com/profclems/compozify/main/install.sh | shOpen a PowerShell terminal (version 5.1 or later) and run:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm https://raw.githubusercontent.com/profclems/compozify/main/install.ps1 | iexmake- Go 1.18+
-
Verify that you have Go 1.18+ installed
go version
If
gois not installed, follow instructions on the Go website. -
Clone this repository
git clone https://github.com/profclems/compozify.git cd compozifyIf you have
$GOPATH/binor$GOBINin your$PATH, you can just install withmake install(install compozify in$GOPATH/bin) and skip steps 3 and 4. -
Build the project
make build
-
Change PATH to find newly compiled
compozifyexport PATH=$PWD/bin:$PATH
-
Run
compozify --versionto confirm that it worked
Copyright © Clement Sam
compozify is open-sourced software licensed under the MIT license.
