Serve a Wordpress website with Docker
Install Docker and run it.
1. Run the command
docker-compose up2. Open the links
- website (Wordpress)
- phpMyAdmin (data base)
3. Stop the server manually
The process will be stopped when the terminal will closed. But if you need to stop the server manually, follow this instructions.
From the project directory (beside docker-compose.yml), run the command:
docker-compose down/docker-compose.ymlDocker config/wwwAll the Wordpress files (generated)/mysql-cacheDatabase persistent data (generated)