- workspace based on s6-overlay
- nginx
- php-fpm (available versions are 7.4 ,8.0 ,8.1 ,8.2 ,8.3)
- supervisor (schedule , queue , horizon , ...)
- MySQL
- MariaDb
- PostgreSQL
- MongoDb
- Redis
- Adminer full
- npm included
- fresh custom laravel 11.x from this repo that customized for this stack.
This needs dockerhost
, install from here
Copy these lines into .bash_aliases
or .bashrc
of your system :
alias larastack='docker compose exec -u webuser workspace'
alias larastack-supervisor='docker compose exec -u webuser supervisor supervisorctl'
alias lpa='larastack php artisan'
function lpa() {
echo "Running lpa command: $@"
larastack php artisan $@
}
git clone https://github.com/ariadata/dc-larastack-v11.git dc-larastack && cd dc-larastack
# make certs
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout ./configs/nginx/ssl/default.key -out ./configs/nginx/ssl/default.crt
bash 1-init.sh
bash 2-up-run-stack.sh
larastack composer update
larastack composer require XXX
# laravel artisan commands
# lpa = larastack php artisan
lpa make:controller ExampleController
lpa key:generate
lpa migrate:fresh --force
lpa make:migration create_example_table
# supervisor commands
larastack-supervisor restart all
larastack-supervisor status all
larastack-supervisor restart laravel-schedule laravel-short-schedule horizon:
# pint/clean code
larastack ./vendor/bin/pint
# Run Tests :
larastack ./vendor/bin/pest
# system down/up
docker-compose down
docker-compose up -d
# npm build commands :
larastack npm install
larastack npm run build
for mongodb
check here
larastack
is alias fordocker-compose exec -u webuser workspace
larastack-supervisor
is alias fordocker-compose exec -u webuser supervisor supervisorctl
lpa
is alias forlarastack php artisan