Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t0mer/decompose
DeCompose is FastAPI based application helps us to generate docker-compose file from existing containers
https://github.com/t0mer/decompose
docker docker-compose fastapi python
Last synced: about 1 month ago
JSON representation
DeCompose is FastAPI based application helps us to generate docker-compose file from existing containers
- Host: GitHub
- URL: https://github.com/t0mer/decompose
- Owner: t0mer
- License: apache-2.0
- Created: 2021-10-18T11:06:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T17:30:29.000Z (11 months ago)
- Last Synced: 2024-10-02T08:06:30.949Z (about 2 months ago)
- Topics: docker, docker-compose, fastapi, python
- Language: Python
- Homepage:
- Size: 1.37 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
*Please :star: this repo if you find it useful*
# DeCompose
DeCompose is [FastAPI](https://fastapi.tiangolo.com/) based web application helps us to generate docker-compose file from existing containers.
With a very simple UI you can generate docker-compose file for any existing container (Running or not),
Just nevigate to DeCompose address and start generating.DeCompose source code is available on GitHub via [https://github.com/t0mer/DeCompose](https://github.com/t0mer/DeCompose)
[![Face Registring](https://github.com/t0mer/DeCompose/blob/main/decompose.png?raw=true "Face Registring")](https://github.com/t0mer/DeCompose/blob/main/decompose.png?raw=true "Face Registring")
## DeCompose Features
- Generating docker-compose to online editor.
- Generating docker-compose to file.
- Swagger api documentation.## Swagger api documentation.
DeCompose includes API and Swagger so you can automate the docker-compose generating. this gives you the abillity
to backup your compose files remotely.[![Face Registring](https://github.com/t0mer/DeCompose/blob/main/decompose%20swagger.png?raw=true "Face Registring")](https://github.com/t0mer/DeCompose/blob/main/decompose%20swagger.png?raw=true "Face Registring")
The API contains three get methods:
- /api/containers - Returns list of existing containers.
- /api/generate - Generates docker-compose and returns it as string.
- /api/download - Generates docker-compose and returns it as file.# Installation
#### Deepstack Trainer Installation
Deepstack Trainer installation is very easy using docker-compose:
```
version: "3.7"services:
decompose:
image: techblog/decompose
container_name: decompose
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8080:8080"
```# Components and Libraries used in DeCompose
* [Docker autocompose](https://github.com/Red5d/docker-autocompose)
* [FastAPI](https://fastapi.tiangolo.com/)
* [Bootstrap](https://getbootstrap.com/docs/5.0/getting-started/introduction/)
* [jQuery-ace](https://cheef.github.io/jquery-ace/)