This example shows you how to use mesher
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.
Clone the code
git clone https://github.com/thandayuthapani/mesher-nginx-example.git
cd mesher-nginx-exampleRun Script
bash -x config_env.shRun the docker compose file
docker-compose upCheck for containers Check whether four containers are up and running when running the following command
docker psSet the proxy
export http_proxy=0.0.0.0:30101 #mesher-consumer has it's port exposed to machine's port of 30101curl 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>