
comp2unraid
Convert docker compose templates to unraid template
Usage
- Have your docker-compose.yml ready, as an URL https://...docker-compose.yml or a local file on your server
- SSH to your Unraid server or open a shell terminal in your browser
- Execute it without installing using docker run, download the binary or compile from source, whatever you prefer.
Run using docker
Preview the xml first, using the -n (dry run) flag
docker run ghcr.io/ogglord/comp2unraid -n "https://raw.githubusercontent.com/user/r/docker-compose.yml"
Then; pipe the output to an xml file
docker run ghcr.io/ogglord/comp2unraid -n "https://raw.githubusercontent.com/user/r/docker-compose.yml" > my-template.xml
Note: if your docker-compose contains multiple services, you will have to split the xml manually, or run the binary, see below, which generates one xml file per service
Download binary
- Download the latest release from Github
./comp2unraid "https://raw.githubusercontent.com/user/r/docker-compose.yml"
Compile from source
- Install go v1.23.1
- Clone this repo
- Compile binaries using
make this will cross-compile to ./bin folder by default
./comp2unraid "https://raw.githubusercontent.com/user/r/docker-compose.yml"
You may also build the docker image locally using make docker and run using docker run local/comp2unraid