Template to deploy a Laravel app to a server managed by CapRover.
jack.bryce-smith.com/💡/laravel-docker-caprover
- 🐳 Lightweight PHP image with common extensions
- Overridable PHP version
- Add other required extensions easily; thanks to mlocati/docker-php-extension-installer
- 📦 Installs composer dependencies; cached between builds if no changes
- ⚡️ Served via Caddy 2
- ⏰ Setup to call the Laravel command scheduler
- 🛰 Straightforward websockets support
- 💪 Services will restart thanks to supervisord
e.g. Zsh one-liner with the Laravel Installer:
laravel new my-app --prompt-jetstream && mv my-app/*(DN) ./ && rm -rf my-app
- jack.bryce-smith.com/💡/laravel-docker-caprover
- Deploy to CapRover, e.g.
caprover deploy