How to set redirect_uri login google .Net Core 2, Docker

I am trying to authenticate using google in .net core 2, docker

services
            .AddAuthentication(options =>
            {
                options.DefaultSignOutScheme = IdentityConstants.ApplicationScheme;
                options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
            })
            .AddGoogle("Google", options =>
            {
                options.CallbackPath = "/api/i/v1/identity/handle-external-login/Google/callback";
                options.ClaimActions.MapJsonKey("urn:google:picture", "picture", "url");
                options.ClaimActions.MapJsonKey("urn:google:locale", "locale", "string");
                options.SaveTokens = true;
                options.ClientId = Configuration["Authentication:Google:ClientId"];
                options.ClientSecret = Configuration["Authentication:Google:ClientSecret"];
                options.Events = new OAuthEvents
                {
                    OnRemoteFailure = (RemoteFailureContext context) =>
                    {
                        context.Response.Redirect("/home/denied");
                        context.HandleResponse();
                        return Task.CompletedTask;
                    }
                };
            })
[HttpGet("signin-{provider}")]
        [AllowAnonymous]
        public IActionResult SignInWithGoogle(string provider)
        {
            var redirectUrl = Url.Action(nameof(HandleExternalLogin), "Identity", new { provider });
            var authenticationProperties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);

            return Challenge(authenticationProperties, provider);
        } 

when redirect to google login page:

 400. That’s an error.

Error: invalid_request

Invalid parameter value for redirect_uri: Non-public domains not allowed: http://identity.service/api/i/v1/identity/handle-external-login/Google/callback

How to change identity.service to localhost or something else?
Sorry for my bad english,

Source: StackOverflow