How many containers should I run on the 5$/m droplet ?

I’m just getting started with docker, I created my first droplet (via the Docker pre-built set-up) and have pointed two domain names to the droplet’s IP.

The first domain would be my personal site to play around with, so I would like to test different images/blogs etc. - for the moment I will set it up with Ghost using the official Docker Ghost image. The second domain will contain 2 sub-sites for my other half and her sister to create a simple portfolio/blog site… for the moment with Ghost but I will possibly switch to Wordpress as it’s easier for an end-user.

Therefore, I plan to have at least 3 “portfolio” sites running 3 Ghost images or 1x Ghost + 2x Wordpress.

After checking just the 3 Ghost images running, alongside Nginx image and Docker-Gen - I seem to use 95% memory, I suppose it’s normal but I don’t know of any ways to test load.

Will I be able to run other sub-sites from the second domain?

Also what is a good set-up for dockerfiles and directories for each site ? I figured I would follow: /srv/<site-name>/

With a docker and site folder inside, like so:

/srv/danlemon/docker/ghost/Dockerfile /srv/danlemon/docker/container/Dockerfile /srv/danlemon/site/config.js /srv/danlemon/site/<other-ghost files>

Although I’m still trying to wrap my head around how a Data Container works, I need an easy way to login and update or tweak files like adding a new theme or plugin to ghost.

Thanks in advance!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

any quantity you want just mount a swap to stretch 512 memory limit

Hi -

I actually found running more than one Docker container (I am running a WordPress stack in a container) on the $5.00 droplet too heavy.

In fact, I was getting PhP memory errors even running one big WordPress-based Docker container on a $5 droplet, so I upped my host for the container to the $10 a month, 1 Gig droplet.

I realize Ghost is much lighter than WordPress so you may get away with running 2 maximum per $5 droplet, I would hazard to guess.

What I had tried in the past, which did work, was running 3 WordPress droplets off of on $10 droplet - that worked.

To do the DNS stuff was tricky, but I got it working, as recounted in an article I wrote on my blog about the process:

The Backend for the Uninitiated

Hope that helps/and to continue on this thread as I feel it is important too…