First ssh into the instance and update the machine using
As the docker-compose tool is not inbuilt in docker, install the ### docker-compose
sudo curl -L https://github.com/hshar94/docker-compose/raw/master/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose
copy the file from docker-compose.yaml and paste on sublime text and paste it in the docker-compose.yaml file. save the file. To build docker-compose file use
After sucessful execution go to browser and paste the ip address of instance and in yaml file we have mentioned port number 8000 so you need to use:
You will get the wordpress installation page. thus, your deployment of wordpress using dockercompose file is done sucessfully.