lando / php

The Official Lando PHP plugin.
https://docs.lando.dev/php
GNU General Public License v3.0
16 stars 16 forks source link

How to override Lando's PHP-FPM settings #108

Open tormi opened 6 months ago

tormi commented 6 months ago

Here's a recipe for overriding Lando's default PHP-FPM settings. If necessary, adjust the name of the .lando folder.

.lando.yml

services:
  appserver:
    overrides:
      volumes:
        # Override default PHP-FPM settings.
        - ./.lando/php-fpm.conf:/usr/local/etc/php-fpm.d/www_overrides.conf

.lando/php-fpm.conf

; Override default PHP-FPM settings.
[www]

pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
reynoldsalec commented 6 months ago

Looking at this and considering https://github.com/lando/docs/issues/17, I'm wondering if we want to change this issue to making the php-fpm config editable via the config option in the .lando.yml file? Sounds like folks are desiring it.