Right now with every docker-compose up all the data will be imported when the container is started. This causes heavy load on each startup even when the data files are located in a separate volume.
My proposal would be to import the data prior in a builder container and copy them to a fresh production container. This also reduces size as the image does not contain all the raw data anymore.
Also I made sure that volumes binding to /bitnami/mongodb/ will not cause anything to fail. In that case data will be copied to the volume before the container starts.
This can also be a foundation to preload additional data sources like MutationAssessor.
Right now with every
docker-compose up
all the data will be imported when the container is started. This causes heavy load on each startup even when the data files are located in a separate volume.My proposal would be to import the data prior in a builder container and copy them to a fresh production container. This also reduces size as the image does not contain all the raw data anymore. Also I made sure that volumes binding to
/bitnami/mongodb/
will not cause anything to fail. In that case data will be copied to the volume before the container starts.This can also be a foundation to preload additional data sources like MutationAssessor.