how to writedump bash script for mongo running in a docker container

using a bash script dump data from mongodb server running as a docker container using a docker-compose file in a database specific level data and also whole database server level data with an authentication passed to the mongodump 00:00 Intro 01:05 Prepare mongodb server, test using compass 03:10 Defining environment variables in bash script 06:45 Implementing mongo dump logic 09:24 Passing authentication credentials to the mongo dump 10:38 Test out the bash script result for one specific database 11:45 Test out the bash script result for all database server 12:33 Outro #mongodb #bashscript #dump #backup #mongo #docker #dockercompose #mongo #bash #script #shell #sh #authentication #enviroment #variable USEFUL******** code repo: https://github.com/sinawic/4yt/tree/m... LINKS********   / react.er     / sinawic