最后更新于2年前
For Laravel Sail, you may utilize soketi's images by adding a new service in your docker-compose.yaml file:
docker-compose.yaml
# For more information: https://laravel.com/docs/sail version: '3' services: # ... soketi: image: 'quay.io/soketi/soketi:latest-16-alpine' environment: SOKETI_DEBUG: '1' SOKETI_METRICS_SERVER_PORT: '9601' ports: - '${SOKETI_PORT:-6001}:6001' - '${SOKETI_METRICS_SERVER_PORT:-9601}:9601' networks: - sail networks: sail: driver: bridge
PUSHER_HOST=soketi PUSHER_APP_ID=app-id PUSHER_APP_KEY=app-key PUSHER_APP_SECRET=app-secret
After adding the server definition to your application's docker-compose.yml file, you should configure your broadcasting environment variables as well as :
docker-compose.yml