The docker-compose up command fails on linux based systems as the hostname host.docker.internal is not resolved in Linux systems, throws could not translate host name "host.docker.internal" to address: Name or service not known error.
Workaround:
use docker's internal gateway address 172.17.0.1 instead of host.docker.internal while using the default docker network.
tried on Ubuntu 20.04.1 LTS