Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with Consul #54

Closed
laoshanxi opened this issue Dec 22, 2019 · 1 comment
Closed

Integrate with Consul #54

laoshanxi opened this issue Dec 22, 2019 · 1 comment

Comments

@laoshanxi
Copy link
Owner

laoshanxi commented Dec 22, 2019

# start consul
$ docker run -d --name=consul --net=host consul

# register service to consul
$ curl -X PUT -d '
{
   "address": "192.168.3.27",
   "checks": [
       {
           "http": "https://192.168.3.27:6060",
           "interval": "5s",
           "method": "GET",
           "tls_skip_verify": true
       }
   ],
   "id": "appmgr192.168.3.27",
   "name": "appmgr192.168.3.27",
   "port": 6060,
   "tags": [
       "appmgr"
   ]
}
'   http://192.168.3.27:8500/v1/agent/service/register

@laoshanxi
Copy link
Owner Author

Consul Application can define service to register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant