add readme
This commit is contained in:
1 parent
2408ffde65
commit
bf3574b1b3
1 file changed
+35
@@ -0,0 +1,35 @@
|
||||
# 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 run` flags
|
||||
* Generates a Docker Compose version 3 file
|
||||
* Can be used with a simple `docker-compose up -d` command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
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.yml` in your project directory.
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
git clone https://git.rznet.fr/razian/runcompose.git
|
||||
cd runcompose
|
||||
go build -o runcompose
|
||||
./runcompose
|
||||
```
|
||||
|
||||
## Limitations
|
||||
|
||||
* Some flags from `docker run` may not have a direct equivalent in Docker Compose, and they might be ignored during the conversion process.
|
||||
* Complex or unconventional `docker run` commands might not be correctly parsed.
|
||||
Reference in new issue
Block a user