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: