Caprover: Mongodb one click app client

Created on 24 Jan 2018  路  5Comments  路  Source: caprover/caprover

Hello. I have created a mongodb one click app and I'm trying to connect the database with Mongodb compass so I could check the entries in my database. Is there a way I can go around this?

technical-support

Most helpful comment

https://github.com/githubsaturn/captainduckduck/wiki/App-Configuration#port-mapping

  • Go to Captain dashboard
  • Select your MongoDB app
  • Go to Port Mapping section and add a port map: Host: 1234 -> Container: 27017
  • In your local machine user this schema: mongodb://dbuser:dbpassword@SERVER_IP_ADDRESS:1234/dbname

Of course, you should use your own values for dbuser dbpassword SERVER_IP_ADDRESS and dbname. Also, you can use any free port instead of 1234

All 5 comments

https://github.com/githubsaturn/captainduckduck/wiki/App-Configuration#port-mapping

  • Go to Captain dashboard
  • Select your MongoDB app
  • Go to Port Mapping section and add a port map: Host: 1234 -> Container: 27017
  • In your local machine user this schema: mongodb://dbuser:dbpassword@SERVER_IP_ADDRESS:1234/dbname

Of course, you should use your own values for dbuser dbpassword SERVER_IP_ADDRESS and dbname. Also, you can use any free port instead of 1234

Okay Thank you, this worked really well. I have some issues I would really request for you to clarify to me if possible, Thanks.

  1. Netdata engine won't start on my captainduckduck on my leader node. I get the Netdata Succesfully started notification but it resets to Start Netdata Engine after I click okay.
  2. My project has images that are stored in a public/uploads folder, I am trying to set a persistent directory so these images won't get deleted once their a restart but I've been unable to.

Netdata engine won't start on my captainduckduck on my leader node. I get the Netdata Succesfully started notification but it resets to Start Netdata Engine after I click okay.

What version of CaptainDuckDuck you're running. There was a bug with NetData that was fixed in V0.5.1

My project has images that are stored in a public/uploads folder, I am trying to set a persistent directory so these images won't get deleted once their a restart but I've been unable to.

What do you mean by unable to? What was the problem?

  • Does it get deleted after restart?
  • Does your application stop running if you set the persistent directory?

The persistent directory is NOT A relative path to your application. In case of NodeJS application, your app sits in /usr/src/app. Therefore, if there is a folder named /upload at the root of your nodejs directory (next to package.json), you should set the "Container Path" for persistent directory as /usr/src/app/upload

Thanks, I was able to fix the persistent directory issue. I was setting the path to /uploads instead of the /usr/src/app. I need to read more on docker.
On the Netdata issue, I am on version 0.5.4. Issue still persists.

If you have a solid repro steps to observe the NetData bug, let me know.

What server provider you use?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

polotto picture polotto  路  4Comments

matuscongrady picture matuscongrady  路  4Comments

drmrbrewer picture drmrbrewer  路  4Comments

rschaerer picture rschaerer  路  4Comments

ZaninAndrea picture ZaninAndrea  路  3Comments