if you want to try the one I made a couple months ago though i do not use emoncms. it seams to work and does not crash you have to create a maria database for it locally outside the docker
https://hub.docker.com/r/sash999/emoncms_localdb/tags
just follow the same directions as it is in openwrt