I spun up a new mongodb in a new directory new door to this one (same host), used the same .js init scripts and it all worked. I can shut down, delete the /data/db dir and start up the container again and the scripts get applied again. No idea what was happening yesterday.