Prerequisites:
1. Docker engine (Ref.- https://docs.docker.com/install/ )
2. Docker compose (Ref.- https://docs.docker.com/compose/install/ )
METHOD-1
Use the following content for the docker-compose.yml file, then run docker-compose up
version: '2'
services:
wordpress:
container_name: name-of-your-app
image: gcr.io/miriinfotech-public/wordpress5:latest
environment:
"WORDPRESS_DB_PASSWORD": "password-as-you-like"
ports:
- '8080:80'
depends_on:
- mysql
mysql:
image: gcr.io/miriinfotech-public/mysql:5.6
environment:
"MYSQL_ROOT_PASSWORD": "password-as-you-like"
Note: Remember to change the container_name, WORDPRESS_DB_PASSWORD and MYSQL_ROOT_PASSWORD as you like.
Wordpress will be accessible on your public IP at http://<public ip>:8080/
METHOD-2
You can use docker run directly as:
# mysql
docker run \
--name some-mysql \
-e "MYSQL_ROOT_PASSWORD= password-as-you-like " \
-d \
gcr.io/miriinfotech-public/mysql:5.6
# wordpress
docker run \
--name some-wordpress \
-p 8080:80 \
--link some-mysql:mysql \
-d \
gcr.io/miriinfotech-public/wordpress5:latest
Wordpress will be accessible on your public IP at http://<public ip>:8080/
1. Start with the configuration as shown below:

2. Enter the details as you like and follow the instructions shown on screen.

3. Enjoy your application


