Dockerize Laravel with Sail
1. Publish the Sail's docker-compose.yml file
  1. php artisan sail:install
┌ Which services would you like to install? ───────────────────┐
│ None                                                         │
└──────────────────────────────────────────────────────────────┘
2. Open ~/.bashrc file3. Add the shell alias for Laravel Sail
~/.bashrc
# Laravel Sail
alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'
4. Start all of the Docker containers in the background
  1. sail up -d
[+] Running 1/2
  ⠧ Network laravel-example-app_sail              Created       1.7s
  ✔ Container laravel-example-app-laravel.test-1  Started       1.1s
5. Stop all of the containers
  1. sail stop
[+] Running 2/2
  ✔ Container laravel-example-app-laravel.test-1  Removed       1.3s
  ✔ Network laravel-example-app_sail              Removed       0.5s