How to get the Actual server hostname inside docker container using docker compose

Hi,

I am running multiple services inside docker container using docker-compose. I want the hostname of the server inside docker container but not container hostname because I want the same hostname for all the services in which server the docker is running.

Thanks in advance.