We have a "mongo-seed" service defined in the docker-compose.yml file, which is responsible for populating/seeding the MongoDB container with sample data available in the mongo-seed/*.json files.
Changes are required as follows:
- Remove the mongo-seed service from docker-compose.yml and define it solely in its respective Dockerfile (present in the mongo-seed/Dockerfile directory).
- Modify the preparedb block in the Makefile to perform the import activity.
Another alternative could be to use some init script in Golang/Mongosh's JavaScript that performs this activity.
Both solutions are welcome.