Habe das erste mal für linux multi-process container #s6overlay als init verwendet anstatt #supervisor. War am Anfang gewöhnungsbedürftig. Vor allem, dass über leere Dateien in bestimmten Ordnern startprozesse und Abhängigkeiten konfiguriert werden. Oder wie die Konfiguration von Services über einzelne Dateien geregelt wird. Gefällt mir aber so gut, dass ich den direkt im zweiten Container eingeführt habe

Slides from my talk "Multiprocess PHP Containers with S6 Overlay " at #confoo are online. https://speakerdeck.com/johanjanssens/multiprocess-php-containers-with-s6-overlay-confoo-2023-fff7f58f-9471-459c-a0f6-edcd6fc05736

Also showing how to run an #openswoole HTTP Server as an additional supervised service. Kudos to @ska for building S6 and S6 Overlay!

#php #S6overlay #docker

Multiprocess PHP Containers with S6 Overlay - ConFoo 2023

In the pre-container era, the most common way of running PHP applications was with Nginx + PHP-FPM, with containers this is harder as you need two processes: Nginx and PHP-FPM. S6 Overlay can help to manage multi-process applications in a container - it takes the burden of security aspects, signal handling, configuration and log management off your shoulders & make your code more readable! URL: https://confoo.ca/en/2023 --- Info about S3 Overlay: https://github.com/just-containers/s6-overlay

Speaker Deck