![]() ![]() 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |