Skip to content

ariadata/dc-larastack-v11

Repository files navigation

Laravel docker-compose stack v11

Build Status

Laravel Stack for local and production (customizable) , includes:

This needs dockerhost , install from here


✅ Usage :

1️⃣ Config bash_aliases

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 $@
}

2️⃣ Initialize

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

3️⃣ Prepare and run

bash 2-up-run-stack.sh

☑️ Usage Commands

Example commands :
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

📝 Notes :

  • larastack is alias for docker-compose exec -u webuser workspace
  • larastack-supervisor is alias for docker-compose exec -u webuser supervisor supervisorctl
  • lpa is alias for larastack php artisan

About

Larastack with laravel-11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages