Why loki log driver does not support docker service name?

I use loki in docker swarm and for security purposes do not want to map loki port on host
when i try to use loki-url: http://lokil:3100/loki/api/v1/push - I have no any logs is sen t to loki only works http://host.docker.internal:3100/loki/api/v1/push but it’s not secure for me

This is a known limitation within docker, I’m afraid there isn’t anything we can do about this, docker plugins are not allowed to connect to internal docker networks