A helper script named dev
is provided as a shortcut for the docker-compose commands to simplify the development process.
- Docker Engine
- Docker Compose
Create .env file by copying from .env.example
cp .env.example .env
Install project dependencies
./dev composer install
Generate application key
./dev artisan key:generate
Start the containers
./dev serve
You can change the port where PHP server is running on different port from the one definend in .env file
APP_PORT=8080 ./dev serve
Stop the containers
./dev down
Run composer
and pass-thru any extra arguments inside a new app container
./dev composer help
Run artisan
and pass-thru any extra arguments inside a new app container
./dev artisan help
Run phpunit
and pass-thru any extra arguments inside a new app container
./dev test --help