├── .github
└── workflows
│ └── docker-build.yaml
├── .gitignore
├── LICENSE
├── README.md
└── php
├── 7.4
├── Dockerfile
├── README.md
└── overrides.conf
├── 8.0
├── Dockerfile
├── README.md
└── overrides.conf
├── 8.1
├── Dockerfile
├── README.md
└── overrides.conf
├── 8.2
├── Dockerfile
├── README.md
└── overrides.conf
├── 8.3
├── Dockerfile
├── README.md
└── overrides.conf
└── 8.4
├── Dockerfile
├── README.md
└── overrides.conf
/.github/workflows/docker-build.yaml:
--------------------------------------------------------------------------------
1 | name: build-all-containers
2 |
3 | on:
4 | pull_request:
5 | push:
6 | branches: [ master ]
7 |
8 | # Allow workflow to be manually run from the GitHub UI
9 | workflow_dispatch:
10 |
11 | # Daily build
12 | schedule:
13 | - cron: "0 2 * * *"
14 |
15 | jobs:
16 | docker:
17 | runs-on: ubuntu-latest
18 | strategy:
19 | matrix:
20 | include:
21 | - name: php74
22 | folder: php/7.4
23 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
24 | targets:
25 | primary:
26 | name: cli
27 | tags: phpdockerio/php:7.4-cli,phpdockerio/php74-cli:latest
28 | secondary:
29 | name: fpm
30 | tags: phpdockerio/php:7.4-fpm,phpdockerio/php74-fpm:latest
31 | tertiary:
32 | name: swoole
33 | tags: phpdockerio/php74-swoole:latest
34 |
35 | - name: php80
36 | folder: php/8.0
37 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
38 | targets:
39 | primary:
40 | name: cli
41 | tags: phpdockerio/php:8.0-cli,phpdockerio/php80-cli:latest
42 | secondary:
43 | name: fpm
44 | tags: phpdockerio/php:8.0-fpm,phpdockerio/php80-fpm:latest
45 | tertiary:
46 | name: swoole
47 | tags: phpdockerio/php80-swoole:latest
48 |
49 | - name: php81
50 | folder: php/8.1
51 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
52 | targets:
53 | primary:
54 | name: cli
55 | tags: phpdockerio/php:8.1-cli
56 | secondary:
57 | name: fpm
58 | tags: phpdockerio/php:8.1-fpm
59 | tertiary: ~
60 |
61 | - name: php82
62 | folder: php/8.2
63 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
64 | targets:
65 | primary:
66 | name: cli
67 | tags: phpdockerio/php:8.2-cli
68 | secondary:
69 | name: fpm
70 | tags: phpdockerio/php:8.2-fpm
71 | tertiary: ~
72 |
73 | - name: php83
74 | folder: php/8.3
75 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
76 | targets:
77 | primary:
78 | name: cli
79 | tags: phpdockerio/php:8.3-cli
80 | secondary:
81 | name: fpm
82 | tags: phpdockerio/php:8.3-fpm
83 | tertiary: ~
84 |
85 | - name: php84
86 | folder: php/8.4
87 | arch: [ linux/amd64, linux/arm64, linux/arm/v7 ]
88 | targets:
89 | primary:
90 | name: cli
91 | tags: phpdockerio/php:8.4-cli
92 | secondary:
93 | name: fpm
94 | tags: phpdockerio/php:8.4-fpm
95 | tertiary: ~
96 |
97 | steps:
98 | - name: Checkout
99 | uses: actions/checkout@v4
100 |
101 | - name: Debug
102 | run: |
103 | echo "is_master: -> ${{ github.ref == 'refs/heads/master' }} <-"
104 | echo "ref: ${{ github.head_ref }}"
105 |
106 | - name: Set up QEMU (required for arm build)
107 | uses: docker/setup-qemu-action@v3
108 |
109 | - name: Set up Docker Buildx
110 | uses: docker/setup-buildx-action@v3
111 |
112 | - name: Login to DockerHub
113 | if: ${{ github.ref == 'refs/heads/master' }}
114 | uses: docker/login-action@v3
115 | with:
116 | username: ${{ secrets.DOCKERHUB_USERNAME }}
117 | password: ${{ secrets.DOCKERHUB_TOKEN }}
118 |
119 | - name: Primary container
120 | uses: docker/build-push-action@v6
121 | with:
122 | context: ${{ matrix.folder }}
123 | platforms: ${{ join(matrix.arch, ',') }}
124 | push: ${{ github.ref == 'refs/heads/master' }}
125 | pull: true
126 | tags: ${{ matrix.targets.primary.tags }}
127 | target: ${{ matrix.targets.primary.name }}
128 |
129 | - name: Secondary container
130 | if: matrix.targets.secondary
131 | uses: docker/build-push-action@v6
132 | with:
133 | context: ${{ matrix.folder }}
134 | platforms: ${{ join(matrix.arch, ',') }}
135 | push: ${{ github.ref == 'refs/heads/master' }}
136 | pull: true
137 | tags: ${{ matrix.targets.secondary.tags }}
138 | target: ${{ matrix.targets.secondary.name }}
139 |
140 | - name: Tertiary container
141 | if: matrix.targets.tertiary
142 | uses: docker/build-push-action@v6
143 | with:
144 | context: ${{ matrix.folder }}
145 | platforms: ${{ join(matrix.arch, ',') }}
146 | push: ${{ github.ref == 'refs/heads/master' }}
147 | pull: true
148 | tags: ${{ matrix.targets.tertiary.tags }}
149 | target: ${{ matrix.targets.tertiary.name }}
150 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io base images
2 |
3 | Repository of base images for [PHPDocker.io](http://phpdocker.io) generated environments.
4 |
5 | Images are [built daily](https://github.com/phpdocker-io/base-images/actions/workflows/docker-build.yaml) in order to
6 | fetch the latest base image changes as well as available php versions.
7 |
8 | ## PHP
9 |
10 | ### Supported architectures
11 |
12 | * `linux/amd64`
13 | * `linux/arm64`
14 | * `linux/arm/v7`
15 |
16 | ### OS Base images & PHP Package Sources
17 |
18 | All images use an Ubuntu LTS release as base image, except for PHP5.6 which uses Debian Jessie. For each of these base
19 | OS images, we use a third party source for the PHP packages - these packages come from
20 | [Ondřej Surý](https://github.com/oerdnj/deb.sury.org) who is the official maintainer for PHP in Debian which is the
21 | origin of all packages in Ubuntu.
22 |
23 | In most cases, we override Ubuntu's PHP packages with Ondřej's to ensure we always have the very latest. For instance,
24 | Ubuntu 20.04 comes with php 7.4.3 but we still install Ondřej's packages to ensure you get the absolutest latest version
25 | of php 7.4 every time. Ubuntu backport security fixes, but not necessarily bugfixes from later patch releases.
26 |
27 | ### Image types
28 |
29 | For each minor PHP version (`MAJOR.MINOR`) we have a `cli` and an `fpm` variant. These two are identical, except for the
30 | fact the `fpm` contains `php-fpm` and their default command is of course `php-fpm`.
31 |
32 | The images do not define an `ENTRYPOINT`, instead they define a `CMD` - this is to make it easier for you to define your
33 | own entrypoint that does stuff before running the `CMD`.
34 |
35 | #### Note on `swoole` variants
36 | We also used to offer a `swoole` variant on some images. We have phased these out, as the images were created before we
37 | could reliably install the extension via `apt` and we had to compile it from source. It is now available as an
38 | `apt` package and all you need to do is install it.
39 |
40 | ### Built-in php extensions
41 |
42 | * apcu & apcu-bc
43 | * curl
44 | * json (from 8.0, part of php core)
45 | * mbstring
46 | * opcache
47 | * readline
48 | * xml
49 | * zip
50 |
51 | These are the minimum extensions I consider necessary for any modern PHP app. They're required by the likes
52 | of `composer`, the `symfony/*` libraries etc.
53 |
54 | ### Composer
55 |
56 | All images use the composer v2. If for whatever reason you need to roll back to v1, add the following to your Dockerfile
57 |
58 | ```Dockerfile
59 | COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
60 | ```
61 |
62 | ### Available images:
63 |
64 | **Notes:**
65 |
66 | | PHP
version | Images | OS base | PHP EOL date | Daily builds |
67 | |------------------|----------------------------------------------------------|---------------|---------------|--------------|
68 | | 8.4 | `phpdockerio/php:8.4-cli`
`phpdockerio/php:8.4-fpm` | Ubuntu 24.04 | ✔ 31 Nov 2028 | ✔ |
69 | | 8.3 | `phpdockerio/php:8.3-cli`
`phpdockerio/php:8.3-fpm` | Ubuntu 22.04 | ✔ 31 Nov 2027 | ✔ |
70 | | 8.2 | `phpdockerio/php:8.2-cli`
`phpdockerio/php:8.2-fpm` | Ubuntu 22.04 | ✔ 31 Dec 2026 | ✔ |
71 | | 8.1 | `phpdockerio/php:8.1-cli`
`phpdockerio/php:8.1-fpm` | Ubuntu 22.04 | ✔ 31 Dec 2025 | ✔ |
72 | | 8.0 | `phpdockerio/php:8.0-cli`
`phpdockerio/php:8.0-fpm` | Ubuntu 20.04 | ❌ 26 Nov 2023 | ✔ |
73 | | 7.4 | `phpdockerio/php:7.4-cli`
`phpdockerio/php:7.4-fpm` | Ubuntu 20.04 | ❌ 28 Nov 2022 | ✔ |
74 | | 7.3 | `phpdockerio/php73-cli`
`phpdockerio/php73-cli` | Ubuntu 18.04 | ❌ 06 Dec 2021 | ❌ |
75 | | 7.2 | `phpdockerio/php72-cli`
`phpdockerio/php72-cli` | Ubuntu 18.04 | ❌ 30 Nov 2020 | ❌ |
76 | | 7.1 | `phpdockerio/php71-cli`
`phpdockerio/php71-fpm` | Ubuntu 16.04 | ❌ 01 Dec 2019 | ❌ |
77 | | 7.0 | `phpdockerio/php70-cli`
`phpdockerio/php70-fpm` | Ubuntu 16.04 | ❌ 10 Jan 2019 | ❌ |
78 | | 5.6 | `phpdockerio/php56-cli`
`phpdockerio/php56-fpm` | Debian Jessie | ❌ 31 Dec 2018 | ❌ |
79 |
80 | * Versions past EOL (end of life) are unsupported, but may still get daily builds to ensure the underlying OS packages
81 | are up to date.
82 | * Daily builds are turned off for versions that run on an OS base that's also EOL (for instance, Ubuntu 18.04).
83 | * Daily builds are kept for PHP versions that have reached EOL but the base OS has not - the base OS still receives
84 | security updates.
85 | * In general, do not use any unsupported images in a production environment, regardless of whether daily builds are
86 | still enabled. I continue to build these for absolute holdouts that haven't been able to upgrade on time.
87 | * Old images are kept in docker hub in the interest of enabling legacy apps to run. Docker does delete images that
88 | haven't been accessed for 6 months. If this happens, I won't be restoring them - you'll need to upgrade.
89 |
--------------------------------------------------------------------------------
/php/7.4/Dockerfile:
--------------------------------------------------------------------------------
1 | ###########################################
2 | # PHPDocker.io PHP 7.4 / CLI & FPM images #
3 | ###########################################
4 |
5 | FROM ubuntu:focal AS cli
6 |
7 | # Fixes some weird terminal issues such as broken clear / CTRL+L
8 | ENV TERM=linux
9 |
10 | # Ensure apt doesn't ask questions when installing stuff
11 | ENV DEBIAN_FRONTEND=noninteractive
12 |
13 | # Install Ondrej repos for Ubuntu focal, PHP7.4, composer and selected extensions - better selection than
14 | # the distro's packages
15 | RUN apt-get update \
16 | && apt-get install -y --no-install-recommends gnupg \
17 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ondrej-php.list \
18 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
19 | && apt-get update \
20 | && apt-get -y --no-install-recommends install \
21 | ca-certificates \
22 | curl \
23 | unzip \
24 | php7.4-apcu \
25 | php7.4-apcu-bc \
26 | php7.4-cli \
27 | php7.4-curl \
28 | php7.4-json \
29 | php7.4-mbstring \
30 | php7.4-opcache \
31 | php7.4-readline \
32 | php7.4-xml \
33 | php7.4-zip \
34 | && apt-get clean \
35 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
36 |
37 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
38 |
39 | CMD ["php", "-a"]
40 |
41 | # If you'd like to be able to use this container on a docker-compose environment as a quiescent PHP CLI container
42 | # you can /bin/bash into, override CMD with the following - bear in mind that this will make docker-compose stop
43 | # slow on such a container, docker-compose kill might do if you're in a hurry
44 | # CMD ["tail", "-f", "/dev/null"]
45 |
46 | FROM cli AS fpm
47 |
48 | # Install FPM
49 | RUN apt-get update \
50 | && apt-get -y --no-install-recommends install php7.4-fpm \
51 | && apt-get clean \
52 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
53 |
54 | STOPSIGNAL SIGQUIT
55 |
56 | # PHP-FPM packages need a nudge to make them docker-friendly
57 | COPY overrides.conf /etc/php/7.4/fpm/pool.d/z-overrides.conf
58 |
59 | CMD ["/usr/sbin/php-fpm7.4", "-O" ]
60 |
61 | # Open up fcgi port
62 | EXPOSE 9000
63 |
64 | FROM cli AS swoole
65 |
66 | # Install the latest available published swoole release
67 | RUN apt-get update \
68 | && apt-get -y --no-install-recommends install php7.4-swoole \
69 | && apt-get clean \
70 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
71 |
--------------------------------------------------------------------------------
/php/7.4/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 7.4 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 18.04 PHP 7.4 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php7.4-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
9 | ## About swoole
10 |
11 | Swoole version is not configurable. We always provide the latest available via Ondrej's PPA to this version of PHP.
12 |
13 | ### Usage
14 |
15 | First, configure your swoole front controller, take note of the port you're starting the server on. For instance:
16 |
17 | ```php
18 | on("start", function ($server) {
26 | echo "Swoole http server is started at http://127.0.0.1:8101\n";
27 | });
28 |
29 | $http->on("request", function ($request, $response) {
30 | $response->header("Content-Type", "text/plain");
31 | $response->end("Hello World\n");
32 | });
33 |
34 | $http->start();
35 | ```
36 |
37 | Second, run the container:
38 |
39 | ```bash
40 | docker run --rm -t -p 8101:8101 -v $(pwd):/app phpdockerio/php74-swoole php /app/index.php
41 | ```
42 |
--------------------------------------------------------------------------------
/php/7.4/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output (older phpdocker.io containers for php use sed for this)
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------
/php/8.0/Dockerfile:
--------------------------------------------------------------------------------
1 | ##################################################
2 | # PHPDocker.io PHP 8.0 / CLI, FPM & Swoole image #
3 | ##################################################
4 |
5 | FROM ubuntu:focal AS cli
6 |
7 | # Fixes some weird terminal issues such as broken clear / CTRL+L
8 | ENV TERM=linux
9 |
10 | # Ensure apt doesn't ask questions when installing stuff
11 | ENV DEBIAN_FRONTEND=noninteractive
12 |
13 | # Install Ondrej repos for Ubuntu focal, PHP8.0, composer and selected extensions - better selection than
14 | # the distro's packages
15 | RUN apt-get update \
16 | && apt-get install -y --no-install-recommends gnupg \
17 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ondrej-php.list \
18 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
19 | && apt-get update \
20 | && apt-get -y --no-install-recommends install \
21 | ca-certificates \
22 | curl \
23 | unzip \
24 | php8.0-apcu \
25 | php8.0-cli \
26 | php8.0-curl \
27 | php8.0-mbstring \
28 | php8.0-opcache \
29 | php8.0-readline \
30 | php8.0-xml \
31 | php8.0-zip \
32 | && apt-get clean \
33 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
34 |
35 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
36 |
37 | CMD ["php", "-a"]
38 |
39 | # If you'd like to be able to use this container on a docker-compose environment as a quiescent PHP CLI container
40 | # you can /bin/bash into, override CMD with the following - bear in mind that this will make docker-compose stop
41 | # slow on such a container, docker-compose kill might do if you're in a hurry
42 | # CMD ["tail", "-f", "/dev/null"]
43 |
44 | FROM cli AS fpm
45 |
46 | # Install FPM
47 | RUN apt-get update \
48 | && apt-get -y --no-install-recommends install php8.0-fpm \
49 | && apt-get clean \
50 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
51 |
52 | STOPSIGNAL SIGQUIT
53 |
54 | # PHP-FPM packages need a nudge to make them docker-friendly
55 | COPY overrides.conf /etc/php/8.0/fpm/pool.d/z-overrides.conf
56 |
57 | CMD ["/usr/sbin/php-fpm8.0", "-O" ]
58 |
59 | # Open up fcgi port
60 | EXPOSE 9000
61 |
62 | FROM cli AS swoole
63 |
64 | # Install the latest available published swoole release
65 | RUN apt-get update \
66 | && apt-get -y --no-install-recommends install php8.0-swoole \
67 | && apt-get clean \
68 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
69 |
--------------------------------------------------------------------------------
/php/8.0/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 8.0 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 20.04 PHP 8.0 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.0-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
9 | ## About swoole
10 |
11 | Swoole version is not configurable. We always provide the latest available via Ondrej's PPA to this version of PHP.
12 |
13 | ### Usage
14 |
15 | First, configure your swoole front controller, take note of the port you're starting the server on. For instance:
16 |
17 | ```php
18 | on("start", function ($server) {
26 | echo "Swoole http server is started at http://127.0.0.1:8101\n";
27 | });
28 |
29 | $http->on("request", function ($request, $response) {
30 | $response->header("Content-Type", "text/plain");
31 | $response->end("Hello World\n");
32 | });
33 |
34 | $http->start();
35 | ```
36 |
37 | Second, run the container:
38 |
39 | ```bash
40 | docker run --rm -t -p 8101:8101 -v $(pwd):/app phpdockerio/php80-swoole php /app/index.php
41 | ```
42 |
--------------------------------------------------------------------------------
/php/8.0/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output (older phpdocker.io containers for php use sed for this)
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------
/php/8.1/Dockerfile:
--------------------------------------------------------------------------------
1 | ############################################
2 | # PHPDocker.io PHP 8.1 / CLI and FPM image #
3 | ############################################
4 |
5 | FROM ubuntu:jammy AS cli
6 |
7 | # Fixes some weird terminal issues such as broken clear / CTRL+L
8 | ENV TERM=linux
9 |
10 | # Ensure apt doesn't ask questions when installing stuff
11 | ENV DEBIAN_FRONTEND=noninteractive
12 |
13 | # Install Ondrej repos for Ubuntu jammy, PHP, composer and selected extensions - better selection than
14 | # the distro's packages
15 | RUN apt-get update \
16 | && apt-get install -y --no-install-recommends gnupg \
17 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \
18 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
19 | && apt-get update \
20 | && apt-get -y --no-install-recommends install \
21 | ca-certificates \
22 | curl \
23 | unzip \
24 | php8.1-apcu \
25 | php8.1-cli \
26 | php8.1-curl \
27 | php8.1-mbstring \
28 | php8.1-opcache \
29 | php8.1-readline \
30 | php8.1-xml \
31 | php8.1-zip \
32 | && apt-get clean \
33 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
34 |
35 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
36 |
37 | CMD ["php", "-a"]
38 |
39 | # If you'd like to be able to use this container on a docker-compose environment as a quiescent PHP CLI container
40 | # you can /bin/bash into, override CMD with the following - bear in mind that this will make docker-compose stop
41 | # slow on such a container, docker-compose kill might do if you're in a hurry
42 | # CMD ["tail", "-f", "/dev/null"]
43 |
44 | FROM cli AS fpm
45 |
46 | # Install FPM
47 | RUN apt-get update \
48 | && apt-get -y --no-install-recommends install php8.1-fpm \
49 | && apt-get clean \
50 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
51 |
52 | STOPSIGNAL SIGQUIT
53 |
54 | # PHP-FPM packages need a nudge to make them docker-friendly
55 | COPY overrides.conf /etc/php/8.1/fpm/pool.d/z-overrides.conf
56 |
57 | CMD ["/usr/sbin/php-fpm8.1", "-O" ]
58 |
59 | # Open up fcgi port
60 | EXPOSE 9000
61 |
--------------------------------------------------------------------------------
/php/8.1/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 8.1 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 22.04 PHP 8.1 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.1-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
9 | ## About swoole
10 |
11 | Swoole version is not configurable. We always provide the latest available via Ondrej's PPA to this version of PHP.
12 |
--------------------------------------------------------------------------------
/php/8.1/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output (older phpdocker.io containers for php use sed for this)
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------
/php/8.2/Dockerfile:
--------------------------------------------------------------------------------
1 | ############################################
2 | # PHPDocker.io PHP 8.2 / CLI and FPM image #
3 | ############################################
4 |
5 | ### CLI ###
6 |
7 | FROM ubuntu:jammy AS cli
8 |
9 | # Fixes some weird terminal issues such as broken clear / CTRL+L
10 | ENV TERM=linux
11 |
12 | # Ensure apt doesn't ask questions when installing stuff
13 | ENV DEBIAN_FRONTEND=noninteractive
14 |
15 | # Install Ondrej repos for Ubuntu jammy, PHP, composer and selected extensions - better selection than
16 | # the distro's packages
17 | RUN apt-get update \
18 | && apt-get install -y --no-install-recommends gnupg \
19 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \
20 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
21 | && apt-get update \
22 | && apt-get -y --no-install-recommends install \
23 | ca-certificates \
24 | curl \
25 | unzip \
26 | php8.2-apcu \
27 | php8.2-cli \
28 | php8.2-curl \
29 | php8.2-mbstring \
30 | php8.2-opcache \
31 | php8.2-readline \
32 | php8.2-xml \
33 | php8.2-zip \
34 | && apt-get clean \
35 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
36 |
37 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
38 |
39 | CMD ["php", "-a"]
40 |
41 | ### FPM ###
42 |
43 | FROM cli AS fpm
44 |
45 | # Install FPM
46 | RUN apt-get update \
47 | && apt-get -y --no-install-recommends install php8.2-fpm \
48 | && apt-get clean \
49 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
50 |
51 | STOPSIGNAL SIGQUIT
52 |
53 | # PHP-FPM packages need a nudge to make them docker-friendly
54 | COPY overrides.conf /etc/php/8.2/fpm/pool.d/z-overrides.conf
55 |
56 | CMD ["/usr/sbin/php-fpm8.2", "-O" ]
57 |
58 | # Open up fcgi port
59 | EXPOSE 9000
60 |
--------------------------------------------------------------------------------
/php/8.2/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 8.2 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 22.04 PHP 8.2 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.2-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
9 | ## About swoole
10 |
11 | Swoole version is not configurable. We always provide the latest available via Ondrej's PPA to this version of PHP.
12 |
--------------------------------------------------------------------------------
/php/8.2/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------
/php/8.3/Dockerfile:
--------------------------------------------------------------------------------
1 | ############################################
2 | # PHPDocker.io PHP 8.3 / CLI and FPM image #
3 | ############################################
4 |
5 | ### CLI ###
6 |
7 | FROM ubuntu:jammy AS cli
8 |
9 | # Fixes some weird terminal issues such as broken clear / CTRL+L
10 | ENV TERM=linux
11 |
12 | # Ensure apt doesn't ask questions when installing stuff
13 | ENV DEBIAN_FRONTEND=noninteractive
14 |
15 | # Install Ondrej repos for Ubuntu jammy, PHP, composer and selected extensions - better selection than
16 | # the distro's packages
17 | RUN apt-get update \
18 | && apt-get install -y --no-install-recommends gnupg \
19 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \
20 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
21 | && apt-get update \
22 | && apt-get -y --no-install-recommends install \
23 | ca-certificates \
24 | curl \
25 | unzip \
26 | php8.3-apcu \
27 | php8.3-cli \
28 | php8.3-curl \
29 | php8.3-mbstring \
30 | php8.3-opcache \
31 | php8.3-readline \
32 | php8.3-xml \
33 | php8.3-zip \
34 | && apt-get clean \
35 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
36 |
37 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
38 |
39 | CMD ["php", "-a"]
40 |
41 | ### FPM ###
42 |
43 | FROM cli AS fpm
44 |
45 | # Install FPM
46 | RUN apt-get update \
47 | && apt-get -y --no-install-recommends install php8.3-fpm \
48 | && apt-get clean \
49 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
50 |
51 | STOPSIGNAL SIGQUIT
52 |
53 | # PHP-FPM packages need a nudge to make them docker-friendly
54 | COPY overrides.conf /etc/php/8.3/fpm/pool.d/z-overrides.conf
55 |
56 | CMD ["/usr/sbin/php-fpm8.3", "-O" ]
57 |
58 | # Open up fcgi port
59 | EXPOSE 9000
60 |
--------------------------------------------------------------------------------
/php/8.3/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 8.3 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 22.04 PHP 8.3 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.3-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
--------------------------------------------------------------------------------
/php/8.3/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------
/php/8.4/Dockerfile:
--------------------------------------------------------------------------------
1 | ############################################
2 | # PHPDocker.io PHP 8.4 / CLI and FPM image #
3 | ############################################
4 |
5 | ### CLI ###
6 |
7 | FROM ubuntu:noble AS cli
8 |
9 | # Fixes some weird terminal issues such as broken clear / CTRL+L
10 | ENV TERM=linux
11 |
12 | # Ensure apt doesn't ask questions when installing stuff
13 | ENV DEBIAN_FRONTEND=noninteractive
14 |
15 | # Install Ondrej repos for Ubuntu, PHP, composer and selected extensions - better selection than
16 | # the distro's packages
17 | RUN apt-get update \
18 | && apt-get install -y --no-install-recommends gnupg \
19 | && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu noble main" > /etc/apt/sources.list.d/ondrej-php.list \
20 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
21 | && apt-get update \
22 | && apt-get -y --no-install-recommends install \
23 | ca-certificates \
24 | curl \
25 | unzip \
26 | php8.4-apcu \
27 | php8.4-cli \
28 | php8.4-curl \
29 | php8.4-mbstring \
30 | php8.4-opcache \
31 | php8.4-readline \
32 | php8.4-xml \
33 | php8.4-zip \
34 | && apt-get clean \
35 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
36 |
37 | COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
38 |
39 | CMD ["php", "-a"]
40 |
41 | ### FPM ###
42 |
43 | FROM cli AS fpm
44 |
45 | # Install FPM
46 | RUN apt-get update \
47 | && apt-get -y --no-install-recommends install php8.4-fpm \
48 | && apt-get clean \
49 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
50 |
51 | STOPSIGNAL SIGQUIT
52 |
53 | # PHP-FPM packages need a nudge to make them docker-friendly
54 | COPY overrides.conf /etc/php/8.4/fpm/pool.d/z-overrides.conf
55 |
56 | CMD ["/usr/sbin/php-fpm8.4", "-O" ]
57 |
58 | # Open up fcgi port
59 | EXPOSE 9000
60 |
--------------------------------------------------------------------------------
/php/8.4/README.md:
--------------------------------------------------------------------------------
1 | # PHPDocker.io - PHP 8.4 / CLI, FPM and Swoole container images
2 |
3 | Ubuntu 22.04 PHP 8.4 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/).
4 |
5 | Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.4-EXTENSION_NAME` as part of your Dockerfile
6 |
7 | *Note on logging:* configure your application to stream logs into `php://stdout`. That's it.
8 |
--------------------------------------------------------------------------------
/php/8.4/overrides.conf:
--------------------------------------------------------------------------------
1 | [global]
2 | ; Override default pid file
3 | pid = /run/php-fpm.pid
4 |
5 | ; Avoid logs being sent to syslog
6 | error_log = /proc/self/fd/2
7 |
8 | ; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop
9 | ; This helps avoiding 502's
10 | process_control_timeout = 30
11 |
12 | ; Do not daemonize (eg send process to the background)
13 | daemonize = no
14 |
15 | [www]
16 | ; Access from webserver container is via network, not socket file
17 | listen = [::]:9000
18 |
19 | ; Redirect logs to stdout - FPM closes /dev/std* on startup
20 | access.log = /proc/self/fd/2
21 | catch_workers_output = yes
22 |
23 | ; Remove "pool www" decoration from log output
24 | decorate_workers_output = no
25 |
26 | ; Required to allow config-by-environment
27 | clear_env = no
28 |
--------------------------------------------------------------------------------