Dockerizing LAMP Stack App and Using GitHub Actions to Build Image to a Private Docker Registry over HTTPS using Htpasswd and Lets Encrypt

Ivhani Maselesele
1 min readJun 20, 2020
LAMP — React or as I like to call it R-Lamp

Phew, long tittle.

So, I’ve recently had to help a friend of mine with deploying his LAMP stack application in Docker. This was for the development environment, so we turned a blind eye to some of the best practices.

During this process I did the following:

  • Use a private Docker registry to store my images
  • Ensure that traffic is over HTTPS and the registry has basic authentication.
  • Used GitHub Actions to build the React project and push it to the registry

I had to do this with little to no additional cost to what he was already incurring. He already had one server, and I had to work with that. Luckily this server had the necessary specifications to host almost everything I needed to do.

I prefer to keep things short and sweet so I’ve be split this into multiple stories, see links below:

--

--