jackbrycesmith / laravel-caprover-template

Template to deploy a Laravel app in docker for CapRover
MIT License
127 stars 44 forks source link

allow php version to be changed via ENV #13

Closed jackbrycesmith closed 3 years ago

jackbrycesmith commented 3 years ago

This allows you to override the default php version by setting a PHP_VERSION environment variable (e.g. PHP_VERSION=7.4.13) in the CapRover dashboard. Two things to bear in mind...

  1. Ensure the PHPVERSION has been [tagged in the official docker images](https://hub.docker.com//php?tab=tags&page=1&ordering=last_updated&name=fpm-alpine)
  2. Ensure any extensions are available: https://github.com/mlocati/docker-php-extension-installer