Skip to content

Use with Docker

Download

You don't have to pull the image first. You also can skip this step.

docker pull chillibits/compose-generator
docker pull ghcr.io/chillibits/compose-generator

Use

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/cg/out chillibits/compose-generator [<command>]
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/cg/out ghcr.io/chillibits/compose-generator [<command>]
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}:/cg/out chillibits/compose-generator [<command>]
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}:/cg/out ghcr.io/chillibits/compose-generator [<command>]

Customize

Custom output path

You can use another output path by replacing ${pwd} with a custom path.

Example

docker run --rm -it -v ./project:/cg/out chillibits/compose-generator

Expose template directory

You can pass another volume to save your custom templates to a directory on the host system.

Example

docker run --rm -it -v ${pwd}:/cg/out -v ~/cg-templates:/cg/templates chillibits/compose-generator