- Nginx : nginx:1.18-alpine
- PHP : php:8.0-fpm-alpine
- DB : mysql:8.0
- PhpMyAdmin : phpmyadmin/phpmyadmin
if php and composer are not installed
cd ./src
sudo apt install php8.0-cli
sudo apt update
sudo apt-get update
sudo apt install composer
sudo apt install php-xml
composer update
composer install
composer dump-autoload
cp .env.example .env
php artisan key:generate
docker-compose build
docker-composer up -d
docker-compose exec app ash
php artisan migrate --seed
ordocker-compose exec app php artisan migrate --seed
cd src
npm run watch
cd src
npm run prod
docker-compose exec app ash
composer phpcs
ordocker-compose exec app composer phpcs
docker-compose exec app ash
composer phpmd
ordocker-compose exec app composer phpmd
run ash shell in php container
docker-compose exec app ash
cd ./src
composer dump-autoload
- npm install
- npm run serve