Clonar repositório
git clone https://github.com/carvalhojccs/livewire-file-upload-with-minio.git
cd livewire-file-upload-with-minio
Criar o arquivo .env
cp .env.example .env
Ajuste as configurações do .env
DB_CONNECTION=pgsql
DB_HOST=pgsql
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password
FILESYSTEM_DISK=s3
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_ENDPOINT=
AWS_BUCKET=
AWS_URL=
AWS_USE_PATH_STYLE_ENDPOINT=false
Rodar a instalação das dependências composer do projeto
docker run --rm -v $(pwd):/opt -w /opt laravelsail/php83-composer:latest composer install
Configurar o alias do sail no ~/.bashrc
vim ~/.bashrc
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
Após configurar o alias, recarreguar o bashrc
source ~/.bashrc
Subir os containers
sail up -d
Gerar a chave do projeto
sail artisan key:generate
Rodar as migrations iniciais
sail artisan migrate
Rodar o npm run dev
sail npm run dev
Feito, projeto instalado