You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for writing such amazing framework. However, I encountered a problem when I deploying my program: If a deploy my program in docker, other micro-based program (even micro cli outside docker) cannot access the program.
I looked into the problem, figured out that the problem come from "ServiceAddress" key in register, whose value is an internal IP inside of docker which impossible to be accessed from any remote environment.
The server uses the address its bound to for registration. If you want to change that you can specify a different server address. If you want it to bind to that address but advertise something different you can use the server.Advertise option
// The address to advertise for discovery - host:port
func Advertise(a string) Option {
return func(o *Options) {
o.Advertise = a
}
}
Hi,
Thank you for writing such amazing framework. However, I encountered a problem when I deploying my program: If a deploy my program in docker, other micro-based program (even micro cli outside docker) cannot access the program.
I looked into the problem, figured out that the problem come from "ServiceAddress" key in register, whose value is an internal IP inside of docker which impossible to be accessed from any remote environment.
registry have following value
I implemented following code to init the service
Thanks
The text was updated successfully, but these errors were encountered: