I am getting 'Localhost does not exist' error on ERPnext when starting

Hello there, I am new to EPRnext and Frappe.

I am setting up on my local with the help of this guide.

In this, I chose Setup Frappe without proxy and external MariaDB and Redis and copied example.env to .env and change DB_HOST=host.docker.internal, DB_PORT=3306, DB_PASSWORD=root (that’s my password)

And then ran docker compose --project-name -f ~/gitops/docker-compose.yml up -d
for starting my project. But I am getting an error that localhost does not exist.