localhost in your docker-compose.yaml file refers to container.
In order to access your local machine use host.docker.internal instead of localhost.
localhost in your docker-compose.yaml file refers to container.
In order to access your local machine use host.docker.internal instead of localhost.