mongodb-cluster-docker-compose icon indicating copy to clipboard operation
mongodb-cluster-docker-compose copied to clipboard

mongo-cluster secure

Open appagithub opened this issue 4 years ago • 1 comments

how to make this mongodb-cluster-docker-compose secured ? something like this article : https://medium.com/@MaxouMask/secured-mongodb-container-6b602ef67885

appagithub avatar Mar 18 '20 14:03 appagithub

2020-04-21T14:53:17.085+0000 I CONTROL [main] ** WARNING: Access control is not enabled for the database. 2020-04-21T14:53:17.085+0000 I CONTROL [main] ** Read and write access to data and configuration is unrestricted.

peterwillcn avatar Apr 21 '20 15:04 peterwillcn

that is because we don't setup authentication for the mongodb cluster, this docker compose is just designed for dev/test environment so authenticate is not really necessary , for production you should setup cluster by manual I think

For production you guys might need to check this link for more information:

https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set-with-keyfile-access-control/

minhhungit avatar Sep 05 '22 08:09 minhhungit

Try with authentication config here https://github.com/minhhungit/mongodb-cluster-docker-compose/issues/8#issuecomment-1302870912

minhhungit avatar Nov 04 '22 11:11 minhhungit