Step 1. Open docker-compose.yml file
Step 2. Go to the services section
Now you need to paste this code there
Extra_hosts directive will help us to map the hostnames
first value is our localhost, you can read her as a default value. The second value is your (in my case my) IP address. You can see your ip address easialy.
Step 1 Open start menu and type "network"
Step 2 Open network settings, to which you are connected and after that you will see network information. You can see the picture below for a example