build/ contains docker container config
runtime/
|-- bash/ Bash history (composer cache, bash commands history)
|-- mysql/ MySQL databases for docker container
src/ Laravel application code (Project)
Project can be setup with Docker.
(If you have a Mac machine - we recommend to run docker under Vagrant)
- Clone repository
- Navigate to your project directory
- Run
make init
, this command will copy important files from examples:- .env
- docker-compose.yml
- src/.env
- build/nginx-server.conf
- Check .env files for correct configurations.
- Run a test run to build containers and init DB:
make test-run
. After containers up press "Ctrl+C" to exit. - Run containers with
make run
- Add to your
/etc/hosts
file:127.0.0.1 itp-sp.test
- Run installation
make install
To get inside PHP container to run composer/php commands run this command:
make php-bash
Inside PHP container there is also GNU Make utility, run make
without any parameters to get available commands list.
To run prettier install nodejs on your machine and run:
npm run prettier
In src/.env
set TELESCOPE_ENABLED=true
Run
make php-bash
Inside PHP container run
php artisan telescope:install
php artisan migrate
Access your site via URL: http://itp-sp.test:8087