Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.03 KB

Laravel Docker

Usage

  • Copy .env.example to .env and update
  • Remove /src from .gitignore
  • Delete or update DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD in src/.env
$ cp .env.example .env
$ docker-compose up -d

$ docker-compose run --rm composer create-project --prefer-dist laravel/laravel ./

$ docker-compose run --rm composer install
$ docker-compose run --rm npm install
$ docker-compose exec -T php-fpm php artisan key:generate

$ docker-compose exec php-fpm sh

Check URL in browser

TODO