4/13/2023 0 Comments Change password using robo 3tWe’ll need to expose it, and pass some ports we want to map to (this helps with predictability/reproducibility) That means this MongoDB instance is not exposed to anything outside of Dokku, that’s good for security, bad for accessing it from your local tools. If we look back at the mongo:info output we’ll notice the following line: Exposed ports:. It should open a MongoDB shell: MongoDB shell version v3.4.9Ĭonnecting to: mongodb://127.0.0.1:27017/public-databaseĭokku’s behaviour around access of MongoDB Run the following command: ssh -t _INSTANCE_IP mongo:connect public-database Service root: /var/lib/dokku/services/mongo/public-databaseĬonnect to your remote MongoDB instance on Dokkuįirst off, let’s check that we can connect using the included dokku-mongo :connect command. => MongoDB container created: public-databaseĬonfig dir: /var/lib/dokku/services/mongo/public-database/configĭata dir: /var/lib/dokku/services/mongo/public-database/dataĭsn: mongodb://public-database: :27017/public-database You should get the following output, the bolded string is the mongo connection URI: Waiting for container to be ready ![]() ssh into the server running Dokku as rootĬreate one with: ssh -t _INSTANCE_IP mongo:create public-database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |