MongoDB container init script which opens file from disk
I’m writing an init script (e.g. /docker-entrypoint-initdb.d/init.js
) which will be executed by the mongo
Docker image when the container is first created. (See the docs for the image, “Initializing a fresh instance” section.)