Laravel Sail (Docker)
For Laravel Sail, you may utilize soketi's Docker images by adding a new service in your docker-compose.yaml file:
1
# For more information: https://laravel.com/docs/sail
2
version: '3'
3
services:
4
# ...
5
​
6
soketi:
7
image: 'quay.io/soketi/soketi:latest-16-alpine'
8
environment:
9
DEBUG: '1'
10
METRICS_SERVER_PORT: '9601'
11
ports:
12
- '${SOKETI_PORT:-6001}:6001'
13
- '${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
14
networks:
15
- sail
16
​
17
networks:
18
sail:
19
driver: bridge
Copied!
After adding the server definition to your application's docker-compose.yml file, you should configure your broadcasting environment variables as well as the broadcasting driver:
1
PUSHER_HOST=soketi
2
PUSHER_APP_ID=app-id
3
PUSHER_APP_KEY=app-key
4
PUSHER_APP_SECRET=app-secret
Copied!
Copy link