Normal view

Deploy Drupal in docker with nginx - Suggestion for improvements

Hello, 2 years ago, I was working for a customer and I needed to install Drupal inside a VPS, and I was facing many issues with the typical PHP configuration, so I decided to use Docker, in which I set up the configuration.

I created an article for my company website and a GitHub repository, and unexpectedly, the SEO ranked a lot, and it was receiving traffic daily. And for this reason, due to another customer's work, I had the opportunity to update the codebase recently, specifically for SSL and Drupal 11.

I want to share because I would like to receive feedback for further improvements, and it can even be helpful for other people with the same issue as me.

The configuration I had been using is:
- Nginx for public access with a reverse proxy that manages SSL certificates
- PHP FPM + Drupal + Composer
- MariaDB / MySQL
- PhpMyAdmin as extra.

And the issue I was facing is the permission management with SSL certificates generated by the hosting machine, in which Docker has trouble reading, as it doesn't have root access to read the SSL certificates, and I must do a local copy, making trouble every 3 months. And I was considering a solution like certbot image.

Feel free to be critical, but not offensive.

Thanks:

Github link: https://github.com/AndreaCorda01/drupal-docker-boilerplate

Website blog: https://www.geonovation.it/article/how-deploy-drupal-website-linux-nginx-and-docker

submitted by /u/cordinx
[link] [comments]
❌