Ghost and Docker!
Run Ghost blog in a Docker container by doing:
docker run --name ghost-blog -d -p 80:2368 alexellis2/ghost-on-docker:latest
That's it!! Cannot be simpler... (in fact it can ;) )
Will it hold the load?
A quick benchmark using ApacheBench yields a 100-120 request/second:
ab -c 4 -n 1000 http://jmkhael.io/
Server Hostname: stratus-clay.fr.murex.com Server Port: 80 Concurrency Level: 4 Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 5882000 bytes HTML transferred: 5626000 bytes Requests per second: 100.59 [#/sec] (mean) Time per request: 39.767 [ms] (mean) Time per request: 9.942 [ms] (mean, across all concurrent requests) Transfer rate: 577.77 [Kbytes/sec] received
Correct the url settings as an example and commit
docker exec -it ghost-blog sh
In the launched shell, manually edit the url field in config.js:
Then commit the changes to a new image:
docker commit ghost-blog ghost-blog-with-url-base