Wordpress in a Docker Container on an AWS EC2 Instance

Pretty much what the title is.

Spencer Pollock
5 min readFeb 6, 2020
Photo by Fabian Grohs on Unsplash

The example site that was created with these settings resides at: http://example.spollock.xyz

Lately, I’ve been messing around with Docker. I’ve wanted to work on setting up a Jenkins server (and it’s coming) with a Docker Swarm on a single machine. The goal is to have the single machine (also the master node) running the Jenkins server and running the slaves. All behind a reverse proxy. I’m at the stages now where Jenkins pipelines run and builds are done, but I haven’t got the swarm configured and working with Jenkins. Meanwhile, while I’m testing that, I’ve had a few interviews and calls with recruiters, so trying to remain busy and able to show what I’ve been actively learning, I set out to build a Wordpress server.

As I said, since I’m learning Docker and running more AWS EC2 instances to run them on, I want this to be similar to that. As I built this yesterday, I’m working out issues here and there, but as of now 48 hours after running the first, I have had no issues as of yet. Keep in mind, I’m only running 3 docker containers on the one host, and still learning more about the setup as I go so I will come back to modify this. My version templates also continue to grow, but I digress.

--

--

Spencer Pollock

💻Software Engineer | Game Developer | DevOps | Project Enthusiest | Technical Writer — Working to make things simpler. I’ll tell you my story as it unfolds 📖