.env :
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=opus
DB_USERNAME=opus
DB_PASSWORD=change_this_user_password
docker-compose.yml :
- MYSQL_ROOT_PASSWORD=change_this_root_password
- MYSQL_DATABASE=opus
- MYSQL_USER=opus
- MYSQL_PASSWORD=change_this_user_password
docker-compose build app
docker run -v "$PWD":/var/www/ opus_app /usr/local/bin/composer install
docker-compose up -d
docker-compose exec app php artisan migrate
docker-compose exec app php artisan key:generate