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