<div dir="ltr"><div>Keith Smith & PLUG (et. al.) --</div><div><br></div><div>I'm sorry it took me so long, but y'know -- end of year madness.</div><div><br></div><div>Anyhoo -- I had some time free from work and I whipped up a nginx webserver with PHP-FPM.</div><div><br></div><div>I have never worked with NGINX and I have never worked with PHP-FPM.  It took a solid 5 minutes of Docker Compose 'ing to get it working.</div><div><br></div><div>Here is the Docker Compose file I used:   <a href="https://pastebin.com/KdPvG6wD">https://pastebin.com/KdPvG6wD</a></div><div>Here is the NGINX Conf file I used:  <a href="https://pastebin.com/sC8VkBVQ">https://pastebin.com/sC8VkBVQ</a></div><div>Here is the INDEX.php file I used:  <a href="https://pastebin.com/y5dEjKNS">https://pastebin.com/y5dEjKNS</a><br><br></div><div>This is the directory structure of my Docker Compose folder:</div><div><br></div><div>--> tree /opt/apps/websitetest/<br>/opt/apps/websitetest/<br>├── data<br>│   ├── html<br>│   │   └── index.php<br>│   └── nginx.conf<br>└── websitetest-compose.yml<br><br>2 directories, 3 files</div><div><br></div><div>===================</div><div><br></div><div>Okay, how here's how you get going on this:</div><div><br></div><div>Step 1:  Add the Docker CE repo to your computer:  <a href="https://download.docker.com/linux/">https://download.docker.com/linux/</a></div><div>.... I assume you know how to do that part.  Its really simple on RHEL, I can't speak for Ubuntu or others.</div><div><br></div><div>Step 2:  Add the packages:</div><div><ul><li><a href="http://containerd.io">containerd.io</a></li><li>docker-buildx-plugin</li><li>docker-ce</li><li>docker-ce-cli</li><li>docker-compose-plugin</li><li>python3-docker</li></ul></div><div><br></div><div>The most important being the "docker-compose-plugin"</div><div><br></div><div>Once docker is running and you can successfully do their "Hello World" test:  "docker run --rm <a href="http://docker.io/library/hello-world">docker.io/library/hello-world</a>" (without double-quotes)</div><div><br></div><div>You should get a message that your docker is installed correctly.</div><div><br></div><div>Next, create a common proxy network for these services to communicate in:  "docker network create website"  (<i>you can name your network whatever you want, for simplicity I chose "website", and my files reflect that same name</i>).</div><div><br></div><div>This proxy network is reflected in my files, so make the appropriate changes if you name it something else:</div><div><br></div><div>----------------------------</div><div>networks:<br>  website:<br>    external: true<br><br>networks:<br>  - website</div><div>----------------------------</div><div><br></div><div>With the Nginx Conf file and PHP files both staged in the proper directories (<b><i><font color="#ff0000">remember to adjust the path to reflect on your system properly</font></i></b>)</div><div><br></div><div>I am in the working directory that contains my COMPOSE file:</div><div>I ran this command:  "docker compose -f websitetest-compose.yml up -d" (<i>without double quotes</i>)</div><div><br></div><div>Then, I navigated to my docker host, and put in the host port (3005) that I mapped to the container port of 80, and I see this: <a href="https://imgur.com/a/Vuajx5z">https://imgur.com/a/Vuajx5z</a></div><div><br></div><div>I'm happy to help anyone trying to get this same proof-of-concept working for them, but anything beyond a simple POC and I would say I'm probably not the guy.</div><div><br></div><div>This was just meant to show how quick and easy Docker makes development.</div><div><br></div><div>Let me know how I can help!</div><div><br></div><div>--</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Thanks,<br>Alex.</div></div><div dir="ltr"><br></div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div>