Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byjg/docker-php
A complete and small PHP Docker image based on Alpine Linux.
https://github.com/byjg/docker-php
apache docker fpm nginx php php56 php7 php7-fpm php71 php72 php73 php74 php8 php8-fpm
Last synced: 3 months ago
JSON representation
A complete and small PHP Docker image based on Alpine Linux.
- Host: GitHub
- URL: https://github.com/byjg/docker-php
- Owner: byjg
- License: mit
- Created: 2016-11-19T17:36:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T16:26:55.000Z (4 months ago)
- Last Synced: 2024-09-29T19:23:27.249Z (3 months ago)
- Topics: apache, docker, fpm, nginx, php, php56, php7, php7-fpm, php71, php72, php73, php74, php8, php8-fpm
- Language: Python
- Homepage:
- Size: 373 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHP Docker Images ByJG
[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com)
[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/docker-php/)
[![Build Status](https://github.com/byjg/docker-php/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/byjg/docker-php/actions/workflows/build.yml)**See full documentation at: [https://opensource.byjg.com/devops/docker-php](https://opensource.byjg.com/devops/docker-php)**
A complete and small PHP Docker image based on Alpine Linux and run on the archictectures
- amd64 (x86_64)
- arm64 (Raspberry PI, Graviton, etc) - available after February 2021The Docker ByJG PHP Images has several bundled images based on PHP in different versions.
The PHP images are ready to use in:
- Development Environment
- Production Environment
- CI/CD environments (like Travis-CI, Circle-CI, Jenkis, Bitbucket Pipelines, and others)
- [IDE Integration](docs/ide.md)## PHP Versions Available
| Version | Latest Version | Monthly Builds | Alpine Version |
|:-------:|:--------------:|:--------------:|:--------------:|
| **8.3** | **8.3.8** | **yes** | **edge** |
| **8.2** | **8.2.20** | **yes** | **3.20** |
| **8.1** | **8.1.29** | **yes** | **3.19** |
| 8.0 | 8.0.30 | - | 3.16 |
| 7.4 | 7.4.33 | - | 3.15 |
| 7.3 | 7.3.33 | - | 3.12 |
| 7.2 | 7.2.33 | - | 3.9 |
| 7.1 | 7.1.33 | - | 3.7 |
| 7.0 | 7.0.33 | - | 3.5 |
| 5.6 | 5.6.40 | - | 3.8 |Notes:
- PHP Images with no monthly builds are not updated anymore and there is no support.
- PHP images using the edge base image are suitable for production. However, they may receive package updates. If you extend these images by adding more packages, those packages may not be available in future updates.## PHP Images
Five different images for each PHP Version
- [base](docs/image-base.md) - Minimal Image, base for the other
- [cli](docs/image-cli.md) - PHP with Command Line installed (composer, phpunit, etc)
- [fpm](docs/image-fpm.md) - PHP with FPM installed
- [fpm-apache](docs/image-fpm.md) - PHP and Apache using FPM
- [fpm-nginx](docs/image-fpm.md) - PHP and Nginx using FPM## Image Tag Convention
Since January 2021 de tag convention is:
```
byjg/php:-[-YYYY.MM]
```Where:
- PHP_VERSION: It is `.`, e.g `8.2`
- TYPE: It is `base`, `cli`, `fpm`, `fpn-nginx`, `fpm-apache`
- YYYY: The Year of the Build
- MM: The month of the build.The images without YYYY-MM can be updated to the latest PHP version and new features.
The images with YYYY-MM are immutablee.g.
```
byjg/php:8.2-fpm
byjg/php:8.2-fpm-2023.01
```## Environment variables
[Here](docs/environment.md) a list of environment variables.
## Image SizesBelow a table with images uncompressed
| Build Type | Uncompressed Size |
|:-----------|------------------:|
| base | ~135MB |
| cli | ~154MB |
| fpm | ~139MB |
| fpm-nginx | ~154MB |
| fpm-apache | ~154MB |## Building your own image
Detailed instructions can be found [here](docs/building.md).
----
[Open source ByJG](http://opensource.byjg.com)