Code Monkey home page Code Monkey logo

Comments (4)

elrido avatar elrido commented on June 3, 2024 1

The /etc/php stability would be a great idea! With alpine 3.18, the coming stable release, we will get access to php 8.2, so when we switch to that it might be a good opportunity to deal with this as well. I wonder if we can bind-mount into a symlink or would instead have to move the php8x dir and create a symlink in it's place. Will have to test this when we get there.

from docker-nginx-fpm-alpine.

elrido avatar elrido commented on June 3, 2024 1

The /etc/php stability now got introduced in the image with tag 1.5.1-alpine3.18-php8.2.

from docker-nginx-fpm-alpine.

elrido avatar elrido commented on June 3, 2024

The locations for attaching the configuration files (not only a php.ini, but also an nginx one) are documented in the README.md file. The following three values need to be tweaked:

; increase size limits
upload_max_filesize=15M
post_max_size=15M

# Allow up to 15 MiB payload, privatebin defaults to 10 MiB.
client_max_body_size 15M;

If anyone would like to raise a pull request with such an automation script, please write it in such a way that it detects a read-only filesystem at the directory of the config files, and doesn't fail the startup. The images are designed to run with a read-only filesystem, so currently any changes have to be attached from the outside into the image (ideally read-only as well).

For completeness, in the alternative nginx unit images, all three values can be set in a single config file which would get attached to /var/lib/unit.

https://github.com/PrivateBin/docker-unit-alpine/blob/2b033dd6424025325971ec305d82f27248330b76/conf.json#L42-L43
https://github.com/PrivateBin/docker-unit-alpine/blob/2b033dd6424025325971ec305d82f27248330b76/conf.json#L63

from docker-nginx-fpm-alpine.

Flightkick avatar Flightkick commented on June 3, 2024

@elrido Thanks for pointing that out. I completely missed that section, my bad.
Considering the read-only filesystem case there might not be an easy way to automatically propagate these settings. Attaching custom config files may be the most feasible solution.

Maybe adding a symlink at /etc/php/ could provide a stable volume mount in case PHP upgrades are done.

from docker-nginx-fpm-alpine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.