I've been fighting for a while now trying to get spatie/laravel-ray to work with a regular laravel sail app.
After lots of debugging, I finally found that when ray was trying to talk to my host machine from the container, it was getting an error, "Could not resolve host: host.docker.internal".
laravel-ray's documents say that you must add extra_hosts to the docker-compose.yaml:
#docker-compose.yml
services:
site:
image: nginx:stable-alpine
container_name: nginx
ports:
- "80:80"
depends_on:
- php
- db
networks:
- packt-api
extra_hosts: # <-- this is required
- "host.docker.internal:host-gateway" # <-- this is required
I've done that on the sail-8.0/app image, and it isn't working. Is this supposed to go somewhere else or something? Has any one made laravel-ray work with a sail application running on a docker container?