php-fpm with Ondrej packages (5.6/7.2/7.4/8.0/8.1) with nullmailer and composer
50K+
eilandert/php-fpm is a family of security-hardened PHP-FPM Docker images
spanning six PHP branches — 5.6, 7.4, 8.0, 8.2, 8.4, 8.5 — on Debian
and Ubuntu bases. They are built from the PHP packages on
deb.myguard.nl and pair with the nginx, angie
and apache-phpfpm images in this project to serve any PHP application.
Where it matters, builds include Snuffleupagus, the runtime PHP security
module that virtually-patches whole vulnerability classes (RCE via
unserialize, dangerous system() calls, cookie/session hardening) without
touching application code.
5.6 app and a modern
8.5 one can run side-by-side on the same host).docker-compose.ymlservices:
php-fpm:
image: eilandert/php-fpm:deb-8.4
restart: unless-stopped
read_only: true
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
tmpfs:
- /run
volumes:
- ./app:/var/www/html:ro # your code, read-only into FPM
- php-sessions:/var/lib/php/sessions
expose:
- "9000" # FastCGI — internal network only
# no `ports:` — only nginx/angie should reach FPM
web:
image: eilandert/nginx:latest
depends_on: [php-fpm]
ports: ["443:443", "80:80", "443:443/udp"]
volumes:
- ./app:/var/www/html:ro
volumes:
php-sessions:
Never publish
9000to the host. FastCGI has no auth — only the web container on the internal network should talk to it.
Tags encode distro + version, e.g. deb-8.4, deb-8.5, ubu-8.4. Pin one.
Content type
Image
Digest
sha256:06ac99040…
Size
115.6 MB
Last updated
about 9 hours ago
docker pull eilandert/php-fpm