How do I seed a mongo database using docker-compose?
问题 I am trying to distribute a set of connected applications running in several linked containers that includes a mongo database that is required to: be distributed containing some seed data; allow users to add additional data. Ideally the data will also be persisted in a linked data volume container. I can get the data into the mongo container using a mongo base instance that doesn't mount any volumes (dockerhub image: psychemedia/mongo_nomount - this is essentially the base mongo Dockerfile