Initial commit

This commit is contained in:
2025-10-06 02:53:44 +03:00
commit 9298c64091
8 changed files with 214 additions and 0 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# Laravel Docker Setup
- NGINX, MySQL, phpMyAdmin
## Создание проекта:
```bash
docker compose run --rm php-fpm bash
```
```bash
composer global require laravel/installer
export PATH="$HOME/.composer/vendor/bin:$PATH"
laravel new example-app
mv example-app/* example-app/.* ./
rmdir example-app
```
Изменить `.env`
```
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=app
DB_USERNAME=laravel
DB_PASSWORD=secret
DB_ROOT_PASSWORD=secret
```