; Production PHP settings for the official image. Diverges from ; docker/app/php.ini in two places, both because the code is baked into the ; image rather than bind-mounted from a developer's working tree. ; These cover a single upload chunk (Uppy resumable) and metadata requests, ; not the maximum file size — raising them does not let users upload larger ; files. Keep in step with client_max_body_size in nginx.conf. upload_max_filesize = 100M post_max_size = 100M memory_limit = 256M opcache.enable = 1 ; The application never changes underneath a running container — a new ; version means a new image — so opcache has no reason to stat every file ; on every request. This is the single biggest difference from the dev ; config, where validate_timestamps=1 is what makes edits show up. opcache.validate_timestamps = 0 opcache.max_accelerated_files = 20000 opcache.memory_consumption = 192 opcache.interned_strings_buffer = 16 ; Nothing should be echoing errors to a browser in production; the log goes ; to stderr, which supervisord forwards to `docker logs`. display_errors = Off log_errors = On error_log = /dev/stderr expose_php = Off