The UseHttpsValidator must be removed through code.
The code to remove the validator can look something like:
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Infrastructure.Runtime.RuntimeModeValidators;
namespace MySite;
public class DockerChecksRemover : IComposer
{
public void Compose(IUmbracoBuilder builder)
=> builder.RuntimeModeValidators().Remove();
}