- 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-investnews
Copy .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/storage
Mount the environment based in docker-compose.yml.
docker compose up -d --build
Execute this commands
docker exec app-invest-php-fpm php composer.phar install
docker exec app-invest-php-fpm php artisan db:seed
docker-compose up -d
http://localhost:8081
docker exec app-invest-php-fpm php artisan test
http://localhost:8007/docs/api