Sign inSign up

spaleks/php-apache

By spaleks

Updated 21 days ago

Image
0

10K+

spaleks/php-apache repository overview

PHP + Apache Boilerplate Images

PHP Docker images with Apache to use directly or as a boilerplate for other projects.

Current images

PHP VersionImage
8.3spaleks/php-apache:php8.3
8.2spaleks/php-apache:php8.2
8.1spaleks/php-apache:php8.1
8.0spaleks/php-apache:php8.0
7.4spaleks/php-apache:php7.4

Apache entry point

The apache entry point is under: /var/www/html/public

Docker compose example

version: "3.9"

services:
    app:
        image: spaleks/php-apache:php8.3
        container_name: php-app
        platform: linux/amd64
        ports:
            - "50083:80"
        volumes:
            - ./src:/var/www/html
            # Or if you do not need a higher level
            # You can mount the apache entry point directly
            # - ./src:/var/www/html/public
        environment:
            DB_HOST: db
            DB_PORT: 3306
            DB_DATABASE: example
            DB_USERNAME: root
            DB_PASSWORD: root

Tag summary

Content type

Image

Digest

sha256:be7cd638e

Size

367 MB

Last updated

21 days ago

docker pull spaleks/php-apache:php8.3