Incus-compose - the missing docker-compose for incus

I have something funky for you: From LXC to Incus mounting with rbind

This could work with incus-compose completly untested though.

compose.yaml

services:
  kiwix:
    image: ghcr.io/kiwix/kiwix-tools:latest
    container_name: kiwix
    ports:
      - 8980:8980
    volumes:
      - ./data:/data
    command: "kiwix-serve --library --port 8980 -L 6 --monitorLibrary /data/library.xml"
    restart: unless-stopped

compose.incus.yaml

services:
  kiwix:
    x-incus:
      raw.lxc: |-
        lxc.mount.entry = /media/zim/ media/zim/ defaults,rbind,create=dir,idmap=container 0 0

There’s no need to split those 2, i just like it to see incus-compose specific changes.