Questions tagged [laravel-sail]
319 questions
1
vote
1 answer
Laravel Sail Docker Hub
I've got laravel sail which as I know is few containers (mysql, redis, laravel, ...). Is there an easy way to just pack up the whole thing to ex. Docker Hub and easly download it on production server, and when i update it on localhost and run docker…

Filip Nowakowski
- 57
- 5
1
vote
3 answers
Laravel Sail SQL Connection timed out
I just started using Laravel Sail, but Laravel can't connect to the MySQL server. Even Artisan in the container gives Connection timed out. I can connect from MySQL Workbench on my host machine.
My .env file has been updated for use with…

Epse
- 36
- 3
1
vote
2 answers
What SESSION_DOMAIN should I use if I'm using Laravel Sail?
I want to use Nuxt.js for my frontend and laravel sanctum as my backend authentication provider. How should I set the SESSION_DOMAIN key in the .env file in my laravel project.
Also should I edit anything in the server object part in the…

Ezrab_
- 825
- 5
- 19
- 44
1
vote
0 answers
Laravel Sail / Docker is too slow on Mac: optimization possible?
Just installed Laravel Sail in an existing project. I really love the easy setup, but it seems way too slow for development. I'm running the latests Docker (20.10) on a Macbook Pro 2019. I gave Docker 6 cores and 8GB of RAM in the…

Menno
- 135
- 1
- 5
0
votes
0 answers
How to set up laravel sail to use sqlite on docker compose
Firstly, is easy to set up laravel to use sail
composer require laravel/sail --dev
php artisan sail:install
The problem is, the docker compose is set to use mysql by default, but I actually need a sqlite.
sqlite is different right, since it use a…

Amir
- 86
- 7
0
votes
1 answer
why is Laravel Sail docker not running on localhost
I downloaded docker for windows, installed it and it works fine,
I Created a new Laravel Project and installed Sails and it installed properly,
but when I run the sails up command (sails as an alias), then go to the browser and enter localhost, it…

PRESTIGE2930
- 13
- 1
0
votes
1 answer
Laravel Sail - How to get oci8 extension working for non-root (sail) user?
Is there someone knowledgeable about docker around?
I'm basically trying to install the oci8 extension inside a docker image (based on ubuntu) and failing at the last step. I've managed to compile the extension but for some reason it's only…

IGP
- 14,160
- 4
- 26
- 43
0
votes
0 answers
Create new DB in Laravel Sail
When we create new project, DB is created automatically. What if we clone app from github? How can I create db? For example - i can logged to mysql in this command
./vendor/bin/sail mysql
Problem is that I couldn't create new DB becouse of no…

sadasdadssad
- 65
- 5
0
votes
0 answers
Can't start cloned Laravel application that uses sail: Returns default 404 page with no errors in container logs
I cloned a new Laravel repository.
Then follow the Laravel docs to install Sail.
Copied the .env file as well.
Ran sail up, sail npm install sail npm run dev.
At this point, I received a user root doesn't exist error from the Postgres container.…

thoughtassault
- 57
- 7
0
votes
1 answer
How do I quickly deploy a Laravel app built using Laravel Sail?
I want to quickly deploy a Laravel app built using Laravel Sail (i.e. inside of a docker container) to a Ubuntu cloud server. How can I do this?

Tyler
- 161
- 1
- 11
0
votes
0 answers
visiting http://localhost/ after running ./vendor/bin/sail up shows the Apache2 Ubuntu Default Page instead of the laravel app
I'm using Linux and I already have docker compose installed.
After creating an application with curl -s https://laravel.build/example-app | bash,
running ./vendor/bin/sail up and visiting http://localhost/ in the browser I see Apache2 Ubuntu Default…

Alphy Gacheru
- 489
- 1
- 9
- 28
0
votes
0 answers
Why is Laravel Sail not wanting to start the when running ./vendor/bin/sail up?
When running ./vendor/bin/sail up, it just won't work.
This is after installing a brand new version using:
curl -s "https://laravel.build/example-app" | bash
cd example-app
./vendor/bin/sail up
System
MacBook Air
Apple M2 Chip
macOS: Ventura…

Dino Cajic
- 138
- 1
- 7
0
votes
0 answers
Laravel Sail: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: No address associated with hostname
So, I created a project with the latest version of Laravel and Sail and I cannot use the application while DB_HOST is "mysql" (changed by Sail) and I cannot use the sail like (./vendor/bin/sail artisan migrate) while the DB_HOST is…

Evans Stu
- 1
- 1
0
votes
3 answers
Docker port binding for Redis with Laravel Sail
I have a multiple Laravel local projects and I'm trying to change one projects Redis port, so that it doesn't conflict with another project.
Projects are one the same network so that they can communicate with one another, but they have separate…

Kipras Bielinskas
- 127
- 1
- 10