Making changes to ddf files in deCONZ UI not seeming to be sticking

So it mean you are using docker ?
So IDK if you have used the persistent folder, but can take a look here How to add/edit a DDF on Home assistant using text editor?