Label hostname OS

I’d like to pass the hostname variable from the host OS to the promtail docker so that I can use the hostname OS label rather than the container hostname.

I tried added hostname as a label with the flag -config.expand-env:

labels:
host: ${HOSTNAME}

but I get hostname container. I can add the hostname by hand but I wish it was universal and didn’t need to be modified on every host.