Note
It must:
- be on the latest version of Laravel
- be lightweight to run with Docker
- use modern technologies such as PHP 8.3, Go 1.23, Python 3.12, etc.
# Pull newer images
task pull
# Build dev image
task build
# Copy Laravel environment variables file
cp -n dev-frontend.env apps/frontend/.env
# Up containers
task up
# Install dependencies, generate key, run migrations
task install
# Show logs
task logs
# Run queue worker
task queue
# Enter the apps container
task console
# Down containers
task down
Install asset deps:
task bun-install
Build assets:
task bun-dev
task bun-prod
Update locales:
task lang-update
Apply fixes by phpcs:
task phpcs-fix
Analyse the code by Larastan:
task phpstan
Other useful commands:
task check-security
task lint-dockerfile
task lint-yaml
task validate-and-format-caddyfile
- In
docker-compose.yml
check new versions of images - In
Dockerfile
check new version ofphp
image- Check a new version of php-zmq, phpredis
- Check a new version of Caddy
- In the apps container run
composer update
/composer outdated
to check new versions - In the
apps/frontend
folder run:
docker run --rm -v .:/code -it node:20-alpine sh
$ cd /code/apps/frontend
$ npm -g install npm-check-updates
$ npm-check-updates --format group -i