HUB
Sign inSign up
php-apache logo

webdevops/php-apache

By webdevops

•Updated about 10 hours ago

PHP-FPM and Apache in one container on the official PHP image; Debian and Alpine

Image
Languages & frameworks
Web servers
Content management system
154

10M+

webdevops/php-apache repository overview

⁠webdevops/php-apache

webdevops/php⁠ plus Apache. Apache serves /app and passes PHP requests to PHP-FPM in the same container. Ports: 80 (HTTP) and 443 (HTTPS with a self-signed certificate).

Always use one of the tags below: an image without a tag (latest) and the alpine tag are old builds from 2019 and 2020 that get no updates, see Known issues⁠.

Rebuilt every night for linux/amd64 and linux/arm64.

⁠Tags

TagBased on
8.6Debian 13
8.5, 8.4, 8.3, 8.2Debian 12
8.6-alpine, 8.5-alpine, 8.4-alpine, 8.3-alpine, 8.2-alpineAlpine

Tags that are not listed here are no longer built and get no updates.

⁠Quick start

services:
  app:
    image: webdevops/php-apache:8.5
    ports:
      - "8080:80"
    environment:
      WEB_DOCUMENT_ROOT: /app/public
    volumes:
      - ./:/app

⁠Documentation

Source and issues: github.com/webdevops/Dockerfile⁠

Tag summary

Content type

Image

Digest

sha256:649ba9415…

Size

405 MB

Last updated

about 10 hours ago

docker pull webdevops/php-apache:8.2