Sign inSign up

fideloper/fly-laravel

By fideloper

•Updated over 1 year ago

Run Laravel on Fly.io. Contribute: https://github.com/fly-apps/laravel-docker

Image
1

100K+

fideloper/fly-laravel repository overview

⁠Laravel Docker

This repository creates base Docker images for use with Laravel⁠ on Fly.io⁠.

Source (GitHub): https://github.com/fly-apps/laravel-docker⁠

⁠PHP

This creates a base container for the following PHP versions

  • 7.4
  • 8.0
  • 8.1
  • 8.2

Built containers from this project will be available at https://hub.docker.com/r/fideloper/fly-laravel⁠

⁠Building

You can build containers from this project using a command like so:

# From the project root:
PHP_VERSION="8.2"
docker build \
    -t myimage:$PHP_VERSION
    --build-arg PHP_VERSION=$PHP_VERSION \
    -f src/Dockerfile \
    ./src

⁠Configuration

The following environment variables can be set at run-time or when extending this container:

envdescriptiondefault value
PHP_PM_MAX_CHILDRENphp-fpm setting pm.max_children10
PHP_PM_START_SERVERSphp-fpm setting pm.start_servers3
PHP_MIN_SPARE_SERVERSphp-fpm setting pm.min_spare_servers2
PHP_MAX_SPARE_SERVERSphp-fpm setting pm.max_spare_servers4
PHP_DATE_TIMEZONEphp setting timezoneUTC
PHP_DISPLAY_ERRORSphp setting display_errorsOff
PHP_ERROR_REPORTINGphp setting error_reporting22527
PHP_MEMORY_LIMITphp setting memory_limit256M
PHP_MAX_EXECUTION_TIMEphp setting max_execution_time90
PHP_POST_MAX_SIZEphp setting post_max_size100M
PHP_UPLOAD_MAX_FILE_SIZEphp setting upload_max_file_size100M

Tag summary

Content type

Image

Digest

sha256:3194ab06d…

Size

108.9 MB

Last updated

over 1 year ago

docker pull fideloper/fly-laravel:unit-8.4