- PHP 8.3 with Laravel
- MySQL 8.0.32
Clone project in your projects folder.
$ git clone git@github.com:fatorx/app-investnews.git && cd app-investnewsCopy .env.dist to .env and adjust values in the .env file to your preferences.
cp .env.dist .env Add permissions to folder data (MySQL) and api/data (logs, storage files), this is where the persistence files will be kept.
chmod 755 data
chmod 755 api/storageMount the environment based in docker-compose.yml.
docker compose up -d --buildExecute this commands
docker exec app-invest-php-fpm php composer.phar installdocker exec app-invest-php-fpm php artisan db:seeddocker-compose up -dhttp://localhost:8081docker exec app-invest-php-fpm php artisan testhttp://localhost:8007/docs/api