Is my Docker setup overkill for a simple WordPress project?

0
0
Asked By CuriousCoder77 On

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

Answered By PragmaticPenguin23 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.