这是indexloc提供的服务,不要输入任何密码
Skip to content

thandayuthapani/mesher-nginx-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

mesher-nginx-example

This example shows you how to use mesher

Note:

Your machine should have only one machine IP(i.e connected to only one network interface). Because service-center will not know on which IP to run and mesher can't resolve service-center's IP also.

Quick Start

Clone the code

git clone https://github.com/thandayuthapani/mesher-nginx-example.git
cd mesher-nginx-example

Run Script

bash -x config_env.sh

Run the docker compose file

docker-compose up

Check for containers Check whether four containers are up and running when running the following command

docker ps

Set the proxy

export http_proxy=0.0.0.0:30101 #mesher-consumer has it's port exposed to machine's port of 30101

curl nginx

curl nginx and check whether response is coming or not

curl http://nginx

<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages