All the database and connection configuration is done by the couchimport
. Just check the documentation at npm.
sudo npm i -g couchimport
Set file permissions:
sudo chmod 777 *.sh
sudo docker run -d -p 5984:5984 -v ~/.couchdb/data:/opt/couchdb/data couchdb
Just run the generator command and them the import command:
./generate_file.sh
./import.sh