main
Docker Run to Docker Compose Converter
This project is a web application that converts a docker run command into a Docker Compose configuration file (YAML format). It aims to help users create Docker Compose files from existing docker run commands, simplifying the process of migrating from standalone containers to a more organized and manageable structure using Docker Compose.
Features
- Supports most common
docker runflags - Generates a Docker Compose version 3 file
- Can be used with a simple
docker-compose up -dcommand
Usage
git clone https://git.rznet.fr/razian/runcompose.git
cd runcompose
docker compose up -d
- Open your web browser and navigate to
http://localhost:8080. - Paste your docker run command into the input field and click the "Convert" button.
- Copy the generated Docker Compose configuration and save it as
docker-compose.ymlin your project directory.
Build
git clone https://git.rznet.fr/razian/runcompose.git
cd runcompose
go build -o runcompose
./runcompose
Limitations
- Some flags from
docker runmay not have a direct equivalent in Docker Compose, and they might be ignored during the conversion process. - Complex or unconventional
docker runcommands might not be correctly parsed.
Description
Converts a docker run command into a Docker Compose configuration file
https://runcompose.fr
Languages
Go
74.6%
HTML
19%
Makefile
3.4%
Dockerfile
3%