Skip to content

Instantly share code, notes, and snippets.

@hoangsvit
Created June 15, 2023 08:55
Show Gist options
  • Save hoangsvit/f094d03fa5aaa834543811973a819753 to your computer and use it in GitHub Desktop.
Save hoangsvit/f094d03fa5aaa834543811973a819753 to your computer and use it in GitHub Desktop.
Laravel sail on Powershell
docker run --rm `
--pull=always `
-v "${pwd}:/opt" `
-w /opt `
laravelsail/php82-composer:latest `
bash -c "laravel new example-app-sail && cd example-app-sail && php ./artisan sail:install --with=mysql,redis,meilisearch,mailpit,selenium "
@hoangsvit
Copy link
Author

https://stackoverflow.com/questions/65723060/laravel-sail-mysql-8-0-problem-on-existing-project

If you run the commands below and don't work

docker-compose down --volumes
 
sail up --build

Try to change the .env DB_USERNAME, probably it is root and will not work for root username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment