Don't set hostname to service name when using --x-networking · Issue #2327 · docker/compose · GitHub
How to Set Hostname in Docker Compose
Set the hostname of a Docker Container same as that of your host machine - DEV Community
How to Set Hostname in Docker Compose
How to configure docker networking with docker-compose to enable remote access to docker container via IP? - General Discussions - Docker Community Forums