Setup
cp .env.example .env
- Modify database .env to:
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laraops
DB_USERNAME=sail
DB_PASSWORD=laraops
- run:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php82-composer:latest \
composer install --ignore-platform-reqs
./vendor/bin/sail up
./vendor/bin/sail php artisan key:generate
run BE: ./vendor/bin/sail up
run FE: ./vendor/bin/sail npm run --prefix /var/www/html/resources/laraops start -- --host=0.0.0.0