It does not work on Kubernetes with a configmap since it tries to create the database.db, state.json etc in the directory where the config is mounted. This container allows this setup to work flawlessly! Also it is super small since Zigbee2Mqtt is build as a single binary and put into a FROM scratch container. The container run as user 1000 with primary group 1000 and dailout(20) as secondary group for tty access.
cd examples/compose
docker-compose up
You could build the container locally like this:
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx build --load --platform linux/amd64 . -t test
Available architectures are what lansible/nexe
supports:
https://hub.docker.com/r/lansible/nexe/tags