-
Clone the repository and into to directory.
git clone git@github.com:r3nyou/devmentor-BE103-PHP.git && cd devmentor-BE103-PHP
-
Install Composer vendor directory and Laravel Sail. This step uses Laravel Sail PHP 8.2 image with preinstalled Composer to install all dependencies.
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer install --ignore-platform-reqs && cp -n .env.example .env
-
Start the container and enerate application key (via Laravel Sail).
vendor/bin/sail up -d && vendor/bin/sail artisan key:generate
Once the application's containers have been started, you may access the project in your web browser at: http://localhost.
For more information, view the document for Laravel Sail and Docker.