- Install docker documentation
- Make sure docker is running in rootless mode documentation
- Install docker-compose documentation
⚠️ MAKE SURE .env IS SET UP CORRECTLY or sail will create a broken database- Copy .env.example to .env for default config
cp .env.example .env
- Copy .env.example to .env for default config
- Bootstrap sail
- Install composer and dependencies
docker run --rm \ -u "$(id -u):$(id -g)" \ -v $(pwd):/var/www/html \ -w /var/www/html \ laravelsail/php81-composer:latest \ composer install --ignore-platform-reqs
- Install composer and dependencies
- Create an alias for sail, that alias can be added to your
~/.bashrc
or~/.zshrc
to have it on terminal startup-
alias sail='./vendor/bin/sail'
-
echo "alias sail='./vendor/bin/sail'" >> ~/.bashrc source ~/.bashrc
-
- Run sail
sail up -d
- Run key generation
sail artisan key:generate
- Run migration
sail artisan migrate
- Run seeding
sail artisan db:seed
- Run npm install
sail npm install