Skip to content

syifandimulyanto/laravel-docker-starter

Repository files navigation

Laravel Docker Starter

Laravel Docker Starter is project to facilitate create new project, we don't need to work hard, to do the initial configuration

Step to use this project :
  • git clone https://github.com/syifandimulyanto/laravel-docker-starter.git
  • cp .env.example .env
  • docker-compose up -d
  • docker ps ( show list docker container )
  • docker-compose exec app nano .env ( update .env file )
  • docker-compose exec app php artisan key:generate
  • docker-compose exec app php artisan config:cache
  • docker-compose exec app php artisan migrate

After follow the step by step, the project already running in http://localhost

Testing

$ docker-compose exec app vendor/bin/phpunit
Refrence Create Docker Configuration

Passport Installing

Laravel passport reference [https://laravel.com/docs/5.8/passport]

  • docker-compose exec app composer require laravel/passport

To custom migration file :

  • docker-compose exec app php artisan vendor:publish --tag=passport-migrations

  • docker-compose exec app php artisan migrate

  • docker-compose exec app php artisan passport:install

Passport Using client password

  • docker-compose exec app php artisan passport:client --password

About

This project used for Laravel with Docker Environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published