Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devilbox/docker-php-fpm-8.0
PHP-FPM 8.0 Docker Image (base image) [multi-arch]
https://github.com/devilbox/docker-php-fpm-8.0
devilbox docker docker-image dockerfile php php-fpm php-fpm-80 php-fpm8 php-fpm80 php8 php80
Last synced: 3 days ago
JSON representation
PHP-FPM 8.0 Docker Image (base image) [multi-arch]
- Host: GitHub
- URL: https://github.com/devilbox/docker-php-fpm-8.0
- Owner: devilbox
- License: mit
- Created: 2019-02-03T00:14:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T15:13:46.000Z (almost 2 years ago)
- Last Synced: 2023-08-05T17:12:06.827Z (over 1 year ago)
- Topics: devilbox, docker, docker-image, dockerfile, php, php-fpm, php-fpm-80, php-fpm8, php-fpm80, php8, php80
- Language: Shell
- Homepage: http://devilbox.org
- Size: 88.9 KB
- Stars: 81
- Watchers: 7
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHP-FPM 8.0
[![Tag](https://img.shields.io/github/tag/devilbox/docker-php-fpm-8.0.svg)](https://github.com/devilbox/docker-php-fpm-8.0/releases)
[![](https://img.shields.io/badge/github-devilbox%2Fdocker--php--fpm--8.0-red.svg)](https://github.com/devilbox/docker-php-fpm-8.0 "github.com/devilbox/docker-php-fpm-8.0")
[![lint](https://github.com/devilbox/docker-php-fpm-8.0/workflows/lint/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.0/actions?query=workflow%3Alint)
[![build](https://github.com/devilbox/docker-php-fpm-8.0/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.0/actions?query=workflow%3Abuild)
[![nightly](https://github.com/devilbox/docker-php-fpm-8.0/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.0/actions?query=workflow%3Anightly)
[![License](https://img.shields.io/badge/license-MIT-%233DA639.svg)](https://opensource.org/licenses/MIT)[![Discord](https://img.shields.io/discord/1051541389256704091?color=8c9eff&label=Discord&logo=discord)](https://discord.gg/2wP3V6kBj4)
[![Discourse](https://img.shields.io/discourse/https/devilbox.discourse.group/status.svg?colorB=%234CB697&label=Discourse&logo=discourse)](https://devilbox.discourse.group)**Available Architectures:** `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6`
[![](https://img.shields.io/docker/pulls/devilbox/php-fpm-8.0.svg)](https://hub.docker.com/r/devilbox/php-fpm-8.0)
This repository will provide you a fully functional PHP-FPM 8.0 Docker image built from [official sources](https://github.com/php/php-src) nightly. It provides the base for [Devilbox PHP-FPM Docker images](https://github.com/devilbox/docker-php-fpm).
> ##### ๐ฑ GitHub: [devilbox/docker-php-fpm-8.0](https://github.com/devilbox/docker-php-fpm-8.0)
| Upstream Project | Reference Implementation |
|:----------------:|:------------------------:|
| | |
| Streamlined [PHP-FPM](https://github.com/devilbox/docker-php-fpm) images | The [Devilbox](https://github.com/cytopia/devilbox) |## ๐ Available Docker tags
[![](https://img.shields.io/docker/pulls/devilbox/php-fpm-8.0.svg)](https://hub.docker.com/r/devilbox/php-fpm-8.0)
[`latest`][tag_latest]
```bash
docker pull devilbox/php-fpm-8.0
```#### Rolling releases
The following Docker image tags are rolling releases and are built and updated every night.
[![nightly](https://github.com/devilbox/docker-php-fpm-8.0/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.0/actions?query=workflow%3Anightly)
| Docker Tag | Git Ref | Available Architectures |
|---------------------------------|--------------|-----------------------------------------------|
| **[`latest`][tag_latest]** | master | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` |[tag_latest]: https://github.com/devilbox/docker-php-fpm-8.0/blob/master/Dockerfiles/Dockerfile
#### Point in time releases
The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.
[![build](https://github.com/devilbox/docker-php-fpm-8.0/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.0/actions?query=workflow%3Abuild)
| Docker Tag | Git Ref | Available Architectures |
|---------------------------------|--------------|-----------------------------------------------|
| **[``][tag_latest]** | git: `` | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` |> ๐ Where `` refers to the chosen git tag from this repository.
## โ Environment Variables
None
## ๐ง Exposed Ports
PHP-FPM listening port `9000`
## ๐ Volumes
None
## โฐ Available Extensions
If you need a dockerized version of **PHP 8.0** or **PHP-FPM 8.0** which provides a vast amount of
extensions enabled by default visit: **[devilbox/docker-php-fpm](https://github.com/devilbox/docker-php-fpm)**> ๐ Click below listed extensions for details:
| Extension | Built-in |
|--------------------------------|-----------|
| [ctype][lnk_ctype] | โ |
| [curl][lnk_curl] | โ |
| [date][lnk_date] | โ |
| [dom][lnk_dom] | โ |
| [FFI][lnk_ffi] | โ |
| [fileinfo][lnk_fileinfo] | โ |
| [filter][lnk_filter] | โ |
| [ftp][lnk_ftp] | โ |
| [hash][lnk_hash] | โ |
| [iconv][lnk_iconv] | โ |
| [json][lnk_json] | โ |
| [libxml][lnk_libxml] | โ |
| [mbstring][lnk_mbstring] | โ |
| [mysqlnd][lnk_mysqlnd] | โ |
| [openssl][lnk_openssl] | โ |
| [pcre][lnk_pcre] | โ |
| [PDO][lnk_pdo] | โ |
| [pdo_sqlite][lnk_pdo_sqlite] | โ |
| [Phar][lnk_phar] | โ |
| [posix][lnk_posix] | โ |
| [readline][lnk_readline] | โ |
| [Reflection][lnk_reflection] | โ |
| [session][lnk_session] | โ |
| [SimpleXML][lnk_simplexml] | โ |
| [sodium][lnk_sodium] | โ |
| [SPL][lnk_spl] | โ |
| [sqlite3][lnk_sqlite3] | โ |
| [tokenizer][lnk_tokenizer] | โ |
| [xml][lnk_xml] | โ |
| [xmlreader][lnk_xmlreader] | โ |
| [xmlwriter][lnk_xmlwriter] | โ |
| [zlib][lnk_zlib] | โ |[lnk_ctype]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/ctype
[lnk_curl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/curl
[lnk_date]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/date
[lnk_dom]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/dom
[lnk_ffi]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/ffi
[lnk_fileinfo]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/fileinfo
[lnk_filter]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/filter
[lnk_ftp]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/ftp
[lnk_hash]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/hash
[lnk_iconv]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/iconv
[lnk_json]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/json
[lnk_libxml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/libxml
[lnk_mbstring]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/mbstring
[lnk_mysqlnd]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/mysqlnd
[lnk_openssl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/openssl
[lnk_pcre]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pcre
[lnk_pdo]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pdo
[lnk_pdo_sqlite]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pdo_sqlite
[lnk_phar]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/phar
[lnk_posix]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/posix
[lnk_readline]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/readline
[lnk_reflection]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/reflection
[lnk_session]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/session
[lnk_simplexml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/simplexml
[lnk_sodium]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/sodium
[lnk_spl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/spl
[lnk_sqlite3]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/sqlite3
[lnk_tokenizer]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/tokenizer
[lnk_xml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xml
[lnk_xmlreader]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xmlreader
[lnk_xmlwriter]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xmlwriter
[lnk_zlib]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/zlib## โข Build
Build the Docker image locally
```bash
make build
```
Rebuild the Docker image locally without cache
```bash
make rebuild
```
Test the Docker image after building
```bash
make test
```## ๐ณ Usage
Add the following `FROM` line into your Dockerfile:
```dockerfile
FROM devilbox/php-fpm-8.0:latest
```## ๐ก Examples
Create a temporary directory, navigate into it and copy/paste the commands below to get started.
#### 1. Setup hello world webpage
```bash
mkdir htdocs
echo " htdocs/index.php
```#### 2. Start PHP container
```bash
docker run -d --rm --name devilbox-php-fpm-8.0 \
-v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-8.0
```#### 3. Start Nginx container
```bash
docker run -d --rm --name devilbox-nginx-stable \
-v $(pwd)/htdocs:/var/www/default/htdocs \
-e PHP_FPM_ENABLE=1 \
-e PHP_FPM_SERVER_ADDR=devilbox-php-fpm-8.0 \
-p 8080:80 \
--link devilbox-php-fpm-8.0 \
devilbox/nginx-stable
```#### 4. Open browser
Open up your browser at http://127.0.0.1:8080
## ๐ Similar Base Images
Have a look at the following similar Devilbox base images for which no official versions exist yet:
* **[`PHP-FPM 5.2`](https://github.com/devilbox/docker-php-fpm-5.2)** **[`PHP-FPM 5.3`](https://github.com/devilbox/docker-php-fpm-5.3)** **[`PHP-FPM 5.4`](https://github.com/devilbox/docker-php-fpm-5.4)** **[`PHP-FPM 5.5`](https://github.com/devilbox/docker-php-fpm-5.5)**
* **[`PHP-FPM 8.0`](https://github.com/devilbox/docker-php-fpm-8.0)** **[`PHP-FPM 8.1`](https://github.com/devilbox/docker-php-fpm-8.1)** **[`PHP-FPM 8.2`](https://github.com/devilbox/docker-php-fpm-8.2)** **[`PHP-FPM 8.3`](https://github.com/devilbox/docker-php-fpm-8.3)**In case you are looking for development and production ready PHP-FPM images for all versions,
which have a vast amount of modules enabled by default go here: **[PHP-FPM](https://github.com/devilbox/docker-php-fpm)**> ๐ For details see **[Documentation: Base Images](https://github.com/devilbox/docker-php-fpm/blob/master/doc/base-images.md)**
## ๐ค Sister Projects
Show some love for the following sister projects.
๐ค Project
๐ฑ GitHub
๐ DockerHub
Devilbox
docker-php-fpm
devilbox/php-fpm
docker-php-fpm-community
devilbox/php-fpm-community
docker-mysql
devilbox/mysql
docker-apache-2.2
docker-apache-2.4
docker-nginx-stable
docker-nginx-mainline
devilbox/apache-2.2
devilbox/apache-2.4
devilbox/nginx-stable
devilbox/nginx-mainline
## ๐ซ Community
In case you seek help, go and visit the community pages.
๐ Documentation
๐ฎ Discord
๐ช Forum
devilbox.readthedocs.io
discord/devilbox
devilbox.discourse.group
## ๐ง Maintainer
**[@cytopia](https://github.com/cytopia)**
I try to keep up with literally **over 100 projects** besides a full-time job.
If my work is making your life easier, consider contributing. ๐ค* [GitHub Sponsorship](https://github.com/sponsors/cytopia)
* [Patreon](https://www.patreon.com/devilbox)
* [Open Collective](https://opencollective.com/devilbox)**Findme:**
**๐ฑ** [cytopia](https://github.com/cytopia) / [devilbox](https://github.com/devilbox) |
**๐** [cytopia](https://hub.docker.com/r/cytopia/) / [devilbox](https://hub.docker.com/r/devilbox/) |
**๐ฆ** [everythingcli](https://twitter.com/everythingcli) / [devilbox](https://twitter.com/devilbox) |
**๐** [everythingcli.org](http://www.everythingcli.org/)**Contrib:** PyPI: [cytopia](https://pypi.org/user/cytopia/) **ยท**
Terraform: [cytopia](https://registry.terraform.io/namespaces/cytopia) **ยท**
Ansible: [cytopia](https://galaxy.ansible.com/cytopia)## ๐ License
**[MIT License](LICENSE)**
Copyright (c) 2022 [cytopia](https://github.com/cytopia)