Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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]

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)