docker mongoimport seed error connecting to host code example
Example 1: restore mongodb in docker-compose
docker-compose exec -T mongorestore --archive --gzip < dump.gz
Example 2: how to import docker mongo data to local mongodb
#! /bin/bash
mongoimport --host mongodb --db test --collection census --type json --file /mongo-seed/census.json --jsonArray