With this repo you can Automatically:-
- Pull images from DockerHub
- Create Docker volumes for permanent use.
- Set Up MySQl Database.
- Set up WordPress site.
- Linux
- Docker
- Worpress
- MYSQl
Make sure you have the latest versions of Docker and Docker Compose installed on your machine.
For Docker installation on linux[Ubuntu Distro/Similar commands for other distro as well]
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
After Docker installation Now 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 installation of the above files:-
sudo systemctl start docker
sudo systemctl enable docker
Open a terminal and cd
to the folder in which docker-compose.yml
is saved and run:-
docker-compose up
Hola!, Everything is Set now the containers are now built and running. You should be able to access the WordPress installation with the configured IP in the browser address by http://192.168.xx.xx:8081
.[Change it accordingly]
Start the containers with the up
command in daemon mode (by adding -d
as an argument) or by using the start
command:
docker-compose start
docker-compose stop
This is a simple project built with docker to setup an worpress building environment on any system