Skip to content

WordPress site using Docker Compose

Step – 01: Create a VM on GCP

Screen Shot 2018-04-13 at 5.41.43 PM

Step – 02: Select the Infrastructure for the VM

Screen Shot 2018-04-13 at 5.41.51 PM

Step – 03: Select the operating system and storage

Screen Shot 2018-04-13 at 5.42.00 PM

Step – 04: Add Firewall rule

Screen Shot 2018-04-13 at 5.42.09 PM

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

Screen Shot 2018-04-13 at 5.53.38 PM.png

Step – 06: Connect to the VM instance using terminal

Screen Shot 2018-04-13 at 5.56.42 PM.png

Step – 07: update package cache


$ sudo apt-get update -y

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


$ cd

$ mkdir skydevops-site && cd skydevops-site

Step – 12: Create a docker compose file

Screen Shot 2018-04-13 at 6.10.06 PM.png

Screen Shot 2018-04-13 at 6.11.59 PM

Step – 13: Start the containers

Screen Shot 2018-04-13 at 6.13.29 PMScreen Shot 2018-04-13 at 6.13.42 PMScreen Shot 2018-04-13 at 6.13.56 PM

Step – 14: Install Nginx for reverse proxy


$ sudo apt-get install nginx -y

Step – 15: Add skydevops site to Nginx

Screen Shot 2018-04-13 at 6.21.54 PM.png

Step – 16 : Restart Nginx


$ sudo systemctl restart nginx

Step – 17: Access the WordPress Site

Screen Shot 2018-04-13 at 6.24.09 PMScreen Shot 2018-04-13 at 6.24.53 PMScreen Shot 2018-04-13 at 6.25.05 PMScreen Shot 2018-04-13 at 6.25.42 PM

Shashi View All

-== Superman ==-

One thought on “WordPress site using Docker Compose Leave a comment

  1. Right here is the right blog for anyone who really wants to understand this topic. You realize so much its almost tough to argue with you (not that I really will need to…HaHa). You definitely put a new spin on a topic that’s been discussed for a long time. Great stuff, just excellent!

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: