Use this repository to:-
- Pull the images form DockerHub.
- Create the volumes for permanent storage.
- Complete setup of MYSQL database.
- Get your own wordpress site.
- Linux
- Docker
- Wordpress
- Mysql
-> Latest version of Docker.
-> latest version of Docker-compose.
-> Use below commands to install docker on linux (any distro)
sudo apt-get update
-> after installing docker, Install docker-compose.
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
-> after installing both docker and docker-compose now execute this command
sudo systemctl status docker
-> As you can see the docker is inactive here. So, to start the docker services you have to first bring the docker in an active state and to do so use this commmand.
sudo systemctl start docker
-> Or to permanently activate your docker, use
sudo systemctl enable docker
This is a project, built mainly in docker that creates a wordpress blogging site.
-> To create your own webapp follow the following steps Step 1 - Open a terminal Step 2 - cd (change directory) to the folder where docker-compose.yml file is saved. Step 3 - Execute the docker-compose.yml file.
docker-compose up
✌️ Everything is set, volumes created, Containers launched, Database connected.
Now, to access your wordpress site just go to your browser's address bar and enter the Configured_IP and port number http://192.--.--.--:8081
[Change it accordingly]
-> To stop the service, Stop containers
docker-compose stop
-> To start the service again
docker-compose start