https://github.com/stefanwalther/docker-mongo-seed
A Docker image to seed a MongoDB database.
https://github.com/stefanwalther/docker-mongo-seed
docker docker-image mongo mongodb mongodb-database seed seed-database
Last synced: 9 months ago
JSON representation
A Docker image to seed a MongoDB database.
- Host: GitHub
- URL: https://github.com/stefanwalther/docker-mongo-seed
- Owner: stefanwalther
- License: mit
- Created: 2018-10-27T11:49:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T22:07:10.000Z (over 6 years ago)
- Last Synced: 2025-04-03T17:54:31.243Z (over 1 year ago)
- Topics: docker, docker-image, mongo, mongodb, mongodb-database, seed, seed-database
- Language: Makefile
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# mongo-seed
> A Docker image to seed your Mongo database.
[](https://microbadger.com/images/stefanwalther/mongo-seed "Get your own image badge on microbadger.com")
---
## Purpose
Docker image to seed your mongo database with ease. Available on [Docker Hub](https://hub.docker.com/r/stefanwalther/mongo-seed)
## Installation
```
$ docker pull stefanwalther/mongo-seed[:]
```
## Usage
```yaml
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"
]
```
## About
### Author
**Stefan Walther**
* [twitter/waltherstefan](http://twitter.com/waltherstefan)
* [github.com/stefanwalther](http://github.com/stefanwalther)
* [LinkedIn](https://www.linkedin.com/in/stefanwalther/)
* [stefanwalther.io](http://stefanwalther.io) - Private blog
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/stefanwalther/mongo-seed/issues). The process for contributing is outlined below:
1. Create a fork of the project
2. Work on whatever bug or feature you wish
3. Create a pull request (PR)
I cannot guarantee that I will merge all PRs but I will evaluate them all.
### License
MIT
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on March 26, 2019._