05-21-2021, 03:54 PM
(05-21-2021, 03:46 PM)Mashiro Wrote: Why? Did you read the introduction part of this guide? Seems like you didn't. The point is to teach people who are afraid of the CLI how to use it properly and use this kind of setup as a learning project for them. It originated from a request by @deanhills.
I made a thread about how to install Docker with Portainer. In there it would be literally a few clicks to install a Wordpress Docker container. What do you learn though? Nothing at all. You don't set up any web server, database server and etc. Learning how to install Docker and get a container running is very easy compared to set up your own web server, PHP and database stack to host your own application.
You are right, this guide aims to give all the knowledge needed to set up WP from scratch using CLI commands and building up the enviroment.
But what I wanted to say is that you could use a pre-made containers, that as you said will not give you much of knowledge, or you could set up a generic alpine-debian-whatvever container and perform this guide inside the container.
The container will not be optimal because no persistent volumes are set up but it is far more secure than running WP on "barehardware". WP isn't the most secure CMS out there and getting a code injection is easy enought if you use "anonymous" extensions or if a new CVE is discovered inside the WP-core.