Am I misunderstanding or do people launch their Mongo container without even MONGO_INITDB_ROOT_{USERNAME,PASSWORD}? It's clearly mentioned in the image README. Takes 15 seconds to set. I'd be incredibly concerned if anybody with more than a day of infrastructure experience did this, even worse on a production database.
Mongo is so insecure that it's commonplace to not bother with usernames and passwords and just firewall the hell out of it instead. Plus that's one more plaintext password you'll end up storing all over the place. Its default configuration requires no authentication.
Not saying it's a good practice but it's a common pattern I've seen.
beermonster|4 years ago
vultour|4 years ago
pm90|4 years ago
dheera|4 years ago
Not saying it's a good practice but it's a common pattern I've seen.