Question

need to host api server (nodejs, Express , mongodb) with nginx reverse proxy. Do you charge per docker container if this needs 2?

Posted January 19, 2019 1.3k views
NginxMongoDBNode.jsDockerKubernetesUbuntu 18.04

Locally I’ve implemented this and as it has pulled docker image for mongodb and attached to main image, eventually it ends up creating 2 containers (I’m assuming a container is a droplet).

Should I create a customesed image in order to have only one image and thus creating one container on one droplet?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

A container is not the same as a droplet. A droplet would be considered a Virtual Private Server of which you would install the necessary applications you need to run your application(s). This would include the docker engine, git, NGINX, etc…

Once your droplet is configured to run containers you can host as many as you like within it with the only restriction being the resources allocated to that droplet.

Thanks. I should have spent little time on this before asking this question🙂

Submit an Answer