From 02cfcc47b0aa97635011f1ccd340b59fec1c03d4 Mon Sep 17 00:00:00 2001 From: rennokki Date: Mon, 19 Apr 2021 11:44:19 +0300 Subject: [PATCH] Added sail documentation --- docs/basic-usage/sail.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/basic-usage/sail.md diff --git a/docs/basic-usage/sail.md b/docs/basic-usage/sail.md new file mode 100644 index 0000000000..04265fbb0a --- /dev/null +++ b/docs/basic-usage/sail.md @@ -0,0 +1,24 @@ +--- +title: Laravel Sail +order: 5 +--- + +# Run in Laravel Sail + +To be able to use Laravel Websockets in Sail, you should just forward the port: + +```yaml +# For more information: https://laravel.com/docs/sail +version: '3' +services: + laravel.test: + build: + context: ./vendor/laravel/sail/runtimes/8.0 + dockerfile: Dockerfile + args: + WWWGROUP: '${WWWGROUP}' + image: sail-8.0/app + ports: + - '${APP_PORT:-80}:80' + - '${LARAVEL_WEBSOCKETS_PORT:-6001}:${LARAVEL_WEBSOCKETS_PORT:-6001}' +```