Hello Everyone! I created a Docker-compose file with LEMP and WordPress as well as a VagrantFile that already has Docker and Docker-compose installed.
- 3 Containers for LEMP-Wordpress (MySQL, WordPress+PHP-FPM, Nginx)
- 2 Volumes (MySQL, WordPress)
- 1 Network (wp-net)
If you are new to Docker check out the docker documentation for more information.
- Vagrant
- Virtual Machine (Oracle VBox or VMware)
- Docker
You can checkout play with Docker which already has compose and docker installed. It is made of Alpine OS and has a terminal-like appearance. Since it is just used for educational purposes, you may use the 4 hours of the session without any additional installation.
I created two types of VagrantFile
- VagrantFile ---> Ready to use VagrantFile with Wordpresss and LEMP containers deployed.
- VagrantFile ---> Docker installed and configured. We need to manually configure the Docker.
For manually docker deployment, follow the instructions below:
Note: Ensure Docker is installed and configured before running this command.
git clone https://github.com/sarath-pm/Vagrant-DockerCompose-LEMP-Wordpress.git
cd Vagrant-DockerCompose-LEMP-Wordpress
docker-compose up -d # Create containers, network & volume ("-d" running container in detached mode)
please refer to this docker commands which you can see the installed container, network, volume details
docker-compose ps # List Process status (Please note that this command only works with the installation directory)
docker network ls # List Network
docker volume ls # List volume
docker-compose down -v # Remove all containers & volumes using these commands (Please note that this command only works with the installation directory)
This project is unlicensed