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

[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

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

[code lang=bash]

$ sudo apt-get install nginx -y

[/code]

Step – 15: Add skydevops site to Nginx

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

Step – 16 : Restart Nginx

[code lang=bash]

$ sudo systemctl restart nginx

[/code]

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!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: