Skip to content

Commit

Permalink
use username and password for availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Jul 31, 2023
1 parent 73c1c52 commit bfc05ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ wait_for_mongodb () {
sleep 1
TIMER=0

until docker exec --tty mongodb $MONGODB_CLIENT --eval "db.serverStatus()"
until docker exec --tty mongodb $MONGODB_CLIENT -u "$MONGODB_USERNAME" -p "$MONGODB_PASSWORD" --eval "db.serverStatus()"
do
echo "."
sleep 1
Expand Down

0 comments on commit bfc05ce

Please sign in to comment.