Basic Deploy Website Application in MECA with more service

Build the basic website application in MECA with more than one service

When you build or deploy website in your computer, you can only the once who can access the file. When you upload the file to docker hub ,anybody can be access your local file that will be unsecure for your computer. MECAs will helps to deploy website in namespace and have its own memory,resource,CPU and RAM. You can build any kind of website by using container or images in docker hub that suited to your website or idea then deploy it in MECA. You can also deploy more than one images at a time, to make website application fully successful.

Prerequisite

1. Click the workload tab in menubar and you will get the page like this. This page will shown all of the project website that deployed on your namespace,you can see whether its deployed successful or not. This page also show the project status too.

Workloadpage

2. Click + NEW workload to start new project deploy

New workload

3. Name the project on top of page and in deployment part, and it will shown in namespace workload portal

4. In Containers part

General

type in the container name and docker images that come from repository of docker hub ,it can be your images or other images that share on docker hub. If you don’t have your own image, find it in docker hub repository and get the name of images.

4.1 In container part fill in container name and images that you choose from docker hub or your own images.

4.2 Port of the website, the name of the port will be free to create but the port number have to use the number that you run the website. Example likes you run website on https://localhost:4000 you have to type port number 4000. Default http:80

Environment

if an images in docker hub have to write a config to download or include more than one file, you have to add or type it in Environment Variable that it will tell you in detailed of repository or image that you want.

Mysqlenv

Then copy the config or environment and fill it in the environment variable part that has key and value to fill in.

Mysqlenv

5. When you finished create deployment part you have to add a service to your deployment. If you have 2 deployment you have to add 2 service, each deployment include 1 service.

AddService Add2Service

5.1 If your website using http or https you have to check the checkbox of the service.

5.2 Select the deployment name that you want to add the service and name it. Suggested to use the same name with the deployment to make it easy to remember which service is belong to the deployment.

5.3 type in project name and port number. Port number that you type in have to port number of your images inside container likes http:80 ,https:443 or mysql:3306

6. When you already click Deploy the project, your project name will be shown on your namespace workload portal.

6.1 Click Deploy Deployclick

6.2 When you click deploy, it will Show project name on workload portal that already deploy. WorkloadPageUpdate

7. If you have more than one deployment, click on menu tab on the left hand side to add deployment and then repeat from step 3 to step 5.3

8. Then waiting for progressing period for a while. When you click your project and your project status have green color likes its shown in picture, service is ready to run.

Joomla mysqlsuccess

9. You can access website by go to url of Service Name.Name space.web.meca.in.th or click at a project name and scroll down to service part.

ServicetoWeb

9.1 If the website cannot access, it will shown

502badgateway

9.1.1 You can check error by click LOG and the error will be shown.

Logerror

SQLError

10. This is the Joomla & MySQL website. You can create your account, your web url and information about website in this page.

Joomlawebsite