An open API service indexing awesome lists of open source software.

https://github.com/jackbrycesmith/laravel-caprover-template

Template to deploy a Laravel app in docker for CapRover
https://github.com/jackbrycesmith/laravel-caprover-template

caddy caprover deployment docker laravel php

Last synced: about 1 month ago
JSON representation

Template to deploy a Laravel app in docker for CapRover

Awesome Lists containing this project

README

          





+





Laravel + CapRover



Template to deploy a Laravel app to a server managed by CapRover.



jack.bryce-smith.com/💡/laravel-docker-caprover

## Features

- 🐳 Lightweight [PHP](https://github.com/jackbrycesmith/laravel-caprover-template/blob/master/.deploy/Dockerfile#L1) image with [common extensions](https://github.com/jackbrycesmith/laravel-caprover-template/blob/master/.deploy/Dockerfile#L21)
- [Overridable PHP version](https://github.com/jackbrycesmith/laravel-caprover-template/pull/13)
- Add other required extensions easily; [thanks to mlocati/docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer)
- 📦 [Installs composer dependencies](https://github.com/jackbrycesmith/laravel-caprover-template/blob/master/.deploy/Dockerfile#L30); cached between builds if no changes
- ⚡️ Served via [Caddy 2](https://github.com/caddyserver/caddy)
- ⏰ [Setup to call](https://github.com/jackbrycesmith/laravel-caprover-template/blob/master/.deploy/Dockerfile#L11) the [Laravel command scheduler](https://laravel.com/docs/7.x/scheduling)
- 🛰 Straightforward websockets support
- 💪 [Services will restart](https://github.com/jackbrycesmith/laravel-caprover-template/blob/master/.deploy/config/supervisor.conf) thanks to [supervisord](https://github.com/ochinchina/supervisord)

## Usage

1. [Install Laravel](https://laravel.com/docs/installation)
> *e.g. Zsh one-liner with the [Laravel Installer](https://github.com/laravel/installer):*
>

laravel new my-app --prompt-jetstream && mv my-app/*(DN) ./ && rm -rf my-app

2. jack.bryce-smith.com/💡/laravel-docker-caprover
3. [Deploy to CapRover](https://caprover.com/docs/deployment-methods.html), e.g. `caprover deploy`