incus-compose is an implementation of the docker-compose specification for the Incus ecosystem.
Partially functional, but many commands not complete.
Only use this if you know enough incus to dig yourself out of the problems this tool might cause.
USE AT YOUR OWN RISK
go install github.com/bketelsen/incus-compose@mainSee the samples in the samples directory. Some of them use x- attributes to control how incus-compose handles a resource.
Simply add the remote as docker.io or ghcr.io to your incus server:
incus remote add --protocol oci docker.io https://docker.io
incus remote add --protocol oci ghcr.io https://ghcr.ioNow you can use incus-compose to pull and run images from those remotes, e.g.:
services:
myservice:
image: docker.io/library/alpine:latest