Build docker image
docker-compose build
Run docker image as a daemon
docker-compose up -d
Stop docker
docker-compose stop
First, get into container
docker-compose exec app bash
Composer install
composer install
Create table with generated/configured migration class
php artisan migrate
Configuration .env:
DOCKER_NGINX_EXTERNAL_PORT=8080 -> local machine service port access via request client (e.g. Postman)
DOCKER_MYSQL_EXTERNAL_PORT=3316 -> in MySQL client (e.g. MySQL Workbench) set the address to localhost:3316