consul:
image: consul
ports:
- "8500:8500"
var consulClient = new Consul.ConsulClient(config => {
config.Address = new Uri("http://consul:8500");
});
var consulClient = new Consul.ConsulClient(config => {
config.Address = new Uri("http://web:8500");
});
或者
var consulClient = new Consul.ConsulClient(config => {
config.Address = new Uri("http://:8500");
});