By Daniel Lemon
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!
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!
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…
—Jonathan
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.