I created a bash/zsh script that will create a “high availability” Rails visitor counter app with PostgreSQL and Redis; as well as a stage app that runs everything in one machine under docker compose: gist . Simply copy/paste that into a shell window on a machine that has Rails installed and you will be up and running in minutes.
And for those that just want to skim, I’ve got a YouTube Video .