A Docker image to seed your Mongo database.
5.5K
A Docker image to seed your Mongo database.
Docker image to seed your mongo database with ease. Available on Docker Hub
$ docker pull stefanwalther/mongo-seed[:<version>]
version: '3.3'
services:
mongo:
image: mongo
container_name: mongo
ports:
- 27017:27017
mongo-seed:
image: stefanwalther/mongo-seed
container_name: mongo-seed
environment:
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
volumes:
- ./config/db-seed:/data
depends_on:
- mongo
command: [
"mongoimport --host mongo --port 27017 --db sammlerio --mode upsert --type json --file /data/auth-service~~user.json --jsonArray"
]
Stefan Walther
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. The process for contributing is outlined below:
I cannot guarantee that I will merge all PRs but I will evaluate them all.
MIT
This file was generated by verb-generate-readme, v0.6.0, on March 26, 2019.
Content type
Image
Digest
Size
38.3 MB
Last updated
over 7 years ago
docker pull stefanwalther/mongo-seed