Docker Image
webdawe/php-fpm:7.4
Laravel Websockets
LARAVEL_WEBSOCKETS_PORT=6004
nginx will route the port 80 websocket requests to 127.0.0.1:6004
Docker compose
version: '3'
services:
my-app:
image: webdawe/php-fpm:7.4
hostname: my-app
container_name: my-app
dns: 8.8.8.8
environment:
CONTAINER_ROLE: app
APP_ENV: local
volumes:
- ./:/var/www/html
networks:
- my-network
ports:
- 80:80
tty: true