Hey everyone! I'm new to Docker and looking for some feedback on my current setup. I typically dabble in WordPress designs for my real estate sites, but I've decided to switch from developing locally with Laravel Valet to using Docker. I've got a working Docker container now, but I want to know if my setup is too complex or if there's room for improvement. Below is my docker-compose.yaml file and a php.ini to help with upload limits. Any suggestions would be greatly appreciated!
1 Answer
Great start! Just a few things to consider: try to avoid hardcoding your secrets directly in the compose file. Also, rather than using "latest" tags for your images, go for a specific version or digest to avoid unexpected changes. Lastly, you can improve the "depends_on" functionality by adding a condition and healthcheck to ensure your services are up and running before starting the others. Here's a link to the Docker docs that might help you with that!
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String