Compozify is a simple (yet complicated) tool to generate a docker-compose.yml file from a docker run command.
Compozify is a tool designed to simplify the process of converting Docker run commands into a docker-compose.yml file. This allows users to easily transition from running individual containers to managing multi-container applications with Docker Compose.
Key Features:
Command Parsing: Compozify can parse any valid Docker run command and generate a corresponding service definition in the docker-compose.yml file.
Multi-Service Support: It supports defining multiple services, enabling users to create complex application setups with ease.
Audience & Benefit:
Ideal for developers and DevOps professionals who work with Docker, Compozify helps streamline workflows by automating the conversion of individual container commands into a standardized compose file format. This reduces manual effort and ensures consistency in defining and managing containerized applications.
Compozify can be installed via winget, making it easy to integrate into your development environment.
README
Compozify
Compozify is a simple (yet complicated) tool to generate a docker-compose.yml file from a docker run command.
Usage
Screenshot
Installation
Download a binary suitable for your OS at the releases page.
Quick install
Linux and macOS
curl -sfL https://raw.githubusercontent.com/profclems/compozify/main/install.sh | sh
Windows (PowerShell)
Open 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 | iex
From source
Prerequisites for building from source
make
Go 1.18+
Verify that you have Go 1.18+ installed
go version
If go is not installed, follow instructions on the Go website.
Clone this repository
git clone https://github.com/profclems/compozify.git
cd compozify
If you have $GOPATH/bin or $GOBIN in your $PATH, you can just install with make install (install compozify in $GOPATH/bin) and skip steps 3 and 4.