Actually I work on a project and we use docker-compose in development.
It compose of 2 database (postgresql and redis), 3 microservices and Nginx.
I don’t know if the best is to use one droplet for all or create 2 droplets for databases, and one droplet for each services.
At the beging I would like reduce the hosting cost much as possible.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Either option is an acceptable solution starting out.
Without knowing more about your project or the services you’ll be running or the traffic or load you’ll expect it is difficult to give you a good recommendation. If your primary concern is cost then you could either use a single droplet to start out or a few small droplets, I would not recommend running your db servers on anything smaller than a 1GB droplet however. Your microservices could likely be run on 512MB droplets. This is of course assuming a relatively small amount of traffic.
Using multiple droplets would make scaling a bit easier as you could then resize individual droplets as needed to increase capacity.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.