2020-01-08 22:57:28 +01:00
2019-12-06 14:29:25 +01:00
2019-12-06 14:06:20 +01:00
2019-12-06 14:06:20 +01:00
2019-12-06 14:06:20 +01:00
2020-01-08 22:57:28 +01:00
2019-12-06 14:06:20 +01:00
2019-12-19 17:10:38 +01:00
2019-12-06 14:06:20 +01:00

docker-compose-to-UR-template

Reads a docker-compose file and translates volumes, ports and enviroment variables into a Unraid compatible template

WIP - Tested on a very small selection of compose-files

Usage

Docker (preferred)

Prep the enviroment

mkdir "templater"
wget -O $(pwd)/templater/defaults.yml https://raw.githubusercontent.com/selfhosters/docker-compose-to-UR-template/master/data/defaults.yml

Place a docker-compose.yml file in the new /templater dir

Run the container

docker run -v "$(pwd)/templater:/app/data" roxedus/compose-templater:master

Manual

git clone the repository. install requirements
Place your compose in data/ so it looks like docker/docker-compose.yml
Run either Converter.py or CLI.py. Converter.py is basically CLI.py -a

Description
Python script reading the essentials form a docker-compose to generate a template with minimal needed manual edits.
Readme 112 KiB
Languages
Python 98.5%
Dockerfile 1.5%