Add the following entry to /etc/hosts:
127.0.0.1 chriskankiewicz.local mysql redis
To set up your local environment variables copy .env.example to .env then
generate your application key.
cp .env.example .env
artisan key:generate
Once done you must set the remaining variables in the .env file.
To build and start the containers on your system for the first time run the following from the project's root directory:
docker-compose up -d
composer install
npm install
artisan migrate:fresh --seed
You can access the development site at http://chriskankiewicz.local.
Laravel Telescope is included in local environments for debugging. Telescope provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps and more.
You can access Telescope via http://chriskankiewicz.local/telescope
docker-compose logs --follow --tail 20 app