#Docker Configuration for laravel app
- clone this repo
- docker-compose up -d
- docker-compose exec app bash // now you are inside your server dir
-
cp .env.example .env
-
docker-compose exec app php artisan key:generate
-
docker-compose exec app php artisan config:cache
-
docker-compose exec db bash
-
mysql -u root -p // password = your_mysql_root_password
-
GRANT ALL ON laravel.* TO 'laraveluser'@'%' IDENTIFIED BY 'your_laravel_db_password';
-
FLUSH PRIVILEGES;
-
exit;
-
exit;
remember if you change any thing in db name or password exec this cmd
docker-compose exec app php artisan config:cache
-
docker-compose exec app php artisan migrate
#Now you are ready to go
localhsot\register
-