Here’s a simple way to set up multiple Docker containers on a single host, with each container representing a unique domain, and each container protected with a LetsEncrypt SSL certificate. In this example, the host system handles the SSL certs, with no need for SSL configuration on the containers.
Category: devops
bookmark_borderSharing a network between standalone Docker containers
How do you connect two standalone docker containers to that they share a network and can communicate. Specifically, how to connect a PHP/Apache container to a Mysql/Mariadb standalone container.
bookmark_borderSimple Docker LAMP stack
My lovely Vagrant setup on my Intel Mac Mini was broken last month when I upgraded to a Mac Mini with Apple Silicon. No more seamless switching workflows between my Mac and my Windows laptop! Luckily, Docker containers came to the rescue.
bookmark_borderDisable PHP in Uploads Folder using Apache Vhost rule
It’s a best practice to disable PHP in any folder where users might upload files. Usually, I would just place an `.htaccess` file in the uploads folder with a simple directive to disable execution of any PHP files. It can also be done in the vhost file.
bookmark_borderAdd Certbot to Ubuntu 20.04
The docs for Certbot on Ubuntu 20.04 only give instructions for installing using snapd. I don’t use snapd. Forums seemed to suggest that was the only way. But using standard apt commands seemed to work fine.