Nginx should be in a separate container. Perhaps you’re running on K8s or using Netflix OSS or even a service mesh (such as LinkerD)… all of these options allow for a service registry. Your service, written in GO should just perform the business function that you have defined. The ingress and traffic should be managed by some other means. IMHO