Skip to content

Refactor mongo-seed to only use Dockerfile and remove service from docker-compose #10

Description

@keshav2010

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:

  1. Remove the mongo-seed service from docker-compose.yml and define it solely in its respective Dockerfile (present in the mongo-seed/Dockerfile directory).
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp-wantedhelp from other contributors would be particularly welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions