Sign inSign up

hetsh/php82-fpm

By hetsh

•Updated about 2 years ago

Small and simple to set up PHP8.2 FastCGI Process Manager.

Image
0

1.6K

hetsh/php82-fpm repository overview

⁠PHP8.2-FPM

Super small and easy to setup PHP8.2 FastCGI Process Manager.

⁠Running the server

docker run --detach --publish 9000:9000 --mount type=bind,source="/path/to/app",target="/path/to/app" --name php82-fpm hetsh/php82-fpm

The php source files of your app must to be mounted, so that FPM can access them.

⁠Stopping the container

docker stop php82-fpm

⁠Configuration

Adjustments can be made via a custom php.ini file. It can be mounted readonly:

--mount type=bind,readonly,source="/path/to/php.ini",target="/etc/php/php.ini"

⁠Automate startup and shutdown via systemd

The systemd unit can be found in my GitHub repository⁠.

systemctl enable php82-fpm.service --now

By default, the systemd service assumes /srv for website data and /etc/localtime for timezone. Since this is a personal systemd unit file, you might need to adjust some parameters to suit your setup.

⁠Fork Me!

This is an open project (visit GitHub⁠). Please feel free to ask questions, file an issue or contribute to it.

Tag summary

Content type

Image

Digest

sha256:de53275a1…

Size

12.3 MB

Last updated

about 2 years ago

docker pull hetsh/php82-fpm