I’m pretty new to Docker and I’m normally familiar with the “classic” way hosting things.
My base is CentOS 7.3.1611 - and I have docker installed (17.05.0-ce, build 89658be)
So my goal is to host multiple WordPress pages on this server and to have all websites available from a single user (So a user can upload files via SFTP to all WordPress pages)
I tried to find my answers but most tutorials/guides don’t explain what every command/config really does.
So here are some questions, so I hope I get better answers.
What is the difference of docker and docker-compose? Because I don’t have have installed docker-compose.
How do I setup a easy to maintain domain administration? So I can easily “switch” the domain of a WordPress installation?
I’m new using docker, but a think a can answer your questions…
What is the difference of docker and docker-compose? Because I don’t have have installed docker-compose
docker-compose is the way you can automate the creation and execution of multiple containers at once (orchestration). So if you have many containers to execute it is highly recommended that you use docker-compose.
What about backups? Backup the whole container?
No you don’t need to backup the containers.
In my environment I backup the files I use to create my images(Dockerfile and confs), and the volumes that store the persistent data. I can recreate all my environment with these files in the event of a disaster
How do I get PHP 7 for my WordPress containers?
There is a image of wordpress in Docker Hub (https://hub.docker.com) with PHP 7. If you want to change something you can create your own image with Dockerfile.
How do I setup a easy to maintain domain administration? So I can easily “switch” the domain of a WordPress installation?
About this, sorry but I can’t answer your question, I don’t use wordpress …