Installation & Configuration of WordPress using docker with Shipyard [Ubuntu]

Docker Installation

Docker is an application that makes it possible to run multiple applications in a container. Unlike VM, docker uses the same host OS for multiple applications. The turning point is that docker will create a different container for different application and pack them. That means if you want to run WordPress and Typo3 within the same host, docker can come in Handy. You will create two containers, i.e one for WordPress and other for Typo3. If you want to remove or make something change, you can go to the respective container and make changes. This will not affect host OS as well as other containers.

Prerequisites

  • 64-Bit Linux Server with kernel Version > 3.10

First, install curl if not done already

sudo apt-get install curl

Add the GPG key for official Docker repository

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the Docker repository to APT sources:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Next, update the package and install DOcker from Docker repo directly.

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

This will install docker and should be automatically started. Check the status by

service docker status

Shipyard Installation

This will deploy Shipyard using the current Docker host.

curl -sSL https://shipyard-project.com/deploy | bash -s

WordPress Installation

Now you can access Shipyard using a web browser. example: <<Server_IP>>:8080.

docker pull WordPress ( for WordPress)

docker pull MariaDB ( any database)

Download any database required for WordPress. Example: MariaDB

 

Now we have to make container starting with MariaDB (or any database image).

Please note Image Name. This should be the same name as the database that you currently downloaded. For us, it was MariaDB.

Container Name can be anything. Please note Environment Variable. This will set a database root password.

Now we will create a container for WordPress. Note Container links.

Now we can access WordPress from URL: <<SERVER-IP>>:8383.

Now you can start the normal installation. Please note the SQL root password mentioned above in db_wordpress container.

Viel Glück !!!

mm

Anup Chhetri

IT system administrator

You may also like...

error: Content is protected !!