An open API service indexing awesome lists of open source software.

https://github.com/lespocky/docker-apache-php

customized docker php image
https://github.com/lespocky/docker-apache-php

docker php wordpress

Last synced: 4 months ago
JSON representation

customized docker php image

Awesome Lists containing this project

README

          

# php with Apache httpd in Docker (docker-apache-php)

[![REUSE status](https://api.reuse.software/badge/github.com/LeSpocky/docker-apache-php)](https://api.reuse.software/info/github.com/LeSpocky/docker-apache-php)
![license MIT](https://img.shields.io/badge/license-MIT-informational)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme)

Customized Docker PHP image, derived from the [official php Docker
image](https://hub.docker.com/_/php), extended to be used with WordPress.

## Table of Contents

- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## Background

The official php Docker image is not suitable for certain use cases as-is.
This enables some Apache modules and PHP extensions not present in the
php-apache Docker image by default.

One goal of this project is to automate the whole build, test, and
release process as far as possible.
Updates on the Docker base image are recognized by Renovate Bot.
All updates except for major PHP updates should automatically trigger a
new release build.

This project follows semantic versioning, although the version numbers
do not correspond with the PHP version this is based on.

## Install

Docker images are built by GitHub CI and pushed to ghcr.io so you can
pull the images like this:

```
docker pull ghcr.io/lespocky/apache-php:latest
```

Semantic versioning like tags are created for release versions.
So you can pull version *1.2.3* or *1.2* or *1* as you like it.

## Usage

If not pulling the distributed image, build it by yourself the usual way:

```
docker build .
```

For further documentation on how to use the image, see
[php Docker image](https://hub.docker.com/_/php).

## Modules and Extensions

The following Apache modules are enabled additionally:

- rewrite

The following PHP extensions are installed additionally:

- gd
- mysqli

## Contributing

Pull requests accepted.

## License

This project is licensed unter the [MIT License](LICENSES/MIT.txt)
unless noted differently in the file and adheres to
[REUSE compliance](https://api.reuse.software/info/git.fsfe.org/reuse/api).

© 2025 [Alexander Dahl](https://github.com/LeSpocky) and contributors