
Step – 01: Create a VM on GCP

Step – 02: Select the Infrastructure for the VM

Step – 03: Select the operating system and storage

Step – 04: Add a Firewall rule

Step – 05: Add FQDN to the VM – DNS is maintained on Cloudflare

Step – 06: Connect to the VM instance using terminal

Step – 07: update package cache
[code lang=bash]
$ sudo apt-get update -y
[/code]
Step – 08: Install Docker on Ubuntu 16.04
Use the following link to install docker
Go To: Install Docker on Ubuntu 16.04 LTS
Step – 10: Install Docker Compose on VM
use the following link to install docker-compose
Go To: Install Docker Compose
Step – 11: Create a Project Structure
[code lang=bash]
$ cd
$ mkdir skydevops-site && cd skydevops-site
[/code]
Step – 12: Create a docker-compose file


Step – 13: Start the containers



Step – 14: Install Nginx for reverse proxy
[code lang=bash]
$ sudo apt-get install nginx -y
[/code]
Step – 15: Add skydevops site to Nginx

Step – 16: Restart Nginx
[code lang=bash]
$ sudo systemctl restart nginx
[/code]
Step – 17: Access the WordPress Site




No comments:
Post a Comment
If you have any doubts or questions, please let us know.