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

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.

×
1 answer

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.

Submit an Answer