- NGINX (alpine)
- MySQL 5.7
- PHP 7.4.3
- Composer
- Laravel 7.*
- PHP Packages
-
Create
.env
file:cp .env.example .env
-
Add
APP_USER
variable:APP_USER=serge
-
Fill
DB_*
credentials:DB_CONNECTION=mysql DB_HOST=app-storage DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=laravel DB_PASSWORD=secret
-
Build Docker environment:
docker-compose build
-
Run Docker environment:
docker-compose up
-
Install
Composer
vendors:docker-compose exec app-php composer install
-
Add site domain to
/etc/hosts
file (Linux):127.0.0.1 local-app.test