@@ -18,14 +18,15 @@ Two variants are available for each supported PHP version:
1818
1919Images are tagged as follows:
2020
21- - ` ghcr.io/yieldstudio/php:<version>-nginx `
21+ - ` ghcr.io/yieldstudio/php:<version>-frankenphp `
2222- ` ghcr.io/yieldstudio/php:<version>-unit `
23+ - ` ghcr.io/yieldstudio/php:<version>-cli `
2324
2425** Examples:**
2526
26- - ` ghcr.io/yieldstudio/php:8.2-nginx `
27+ - ` ghcr.io/yieldstudio/php:8.2-frankenphp `
2728- ` ghcr.io/yieldstudio/php:8.3-unit `
28- - ` ghcr.io/yieldstudio/php:8.4-nginx `
29+ - ` ghcr.io/yieldstudio/php:8.4-frankenphp `
2930
3031## Laravel Automation
3132
@@ -41,15 +42,15 @@ You can customize or extend these scripts to fit your deployment needs.
4142### Using with Docker CLI
4243
4344``` bash
44- docker run --rm -it ghcr.io/yieldstudio/php:8.3-nginx php -v
45+ docker run --rm -it ghcr.io/yieldstudio/php:8.3-frankenphp php -v
4546```
4647
4748### Using in a Docker Compose file
4849
4950``` yaml
5051services :
5152 app :
52- image : ghcr.io/yieldstudio/php:8.3-unit
53+ image : ghcr.io/yieldstudio/php:8.3-frankenphp
5354 ports :
5455 - " 8080:8080"
5556 volumes :
@@ -70,7 +71,7 @@ ARG NODE_VERSION=22
7071############################################
7172# Base Image
7273############################################
73- FROM ghcr.io/yieldstudio/php:${PHP_VERSION}-nginx AS base
74+ FROM ghcr.io/yieldstudio/php:${PHP_VERSION}-frankenphp AS base
7475
7576ENV HEALTHCHECK_PATH="/up"
7677
@@ -89,9 +90,6 @@ ARG NODE_VERSION=22
8990ARG MYSQL_CLIENT="mysql-client"
9091ARG POSTGRES_VERSION=17
9192
92- ENV AUTORUN_ENABLED=false
93- ENV PHP_OPCACHE_ENABLE=0
94-
9593ENV XDEBUG_MODE="off"
9694ENV XDEBUG_CONFIG="client_host=host.docker.internal"
9795
@@ -109,6 +107,8 @@ RUN apt-get update && apt-get upgrade -y \
109107 && npm install -g bun \
110108 && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/keyrings/yarn.gpg >/dev/null \
111109 && echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
110+ && curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/keyrings/pgdg.gpg >/dev/null \
111+ && echo "deb [signed-by=/etc/apt/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
112112 && apt-get update \
113113 && apt-get install -y yarn \
114114 && apt-get -y autoremove \
@@ -141,12 +141,8 @@ USER root
141141
142142RUN install-php-extensions xdebug
143143
144- RUN echo "" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-pool.conf && \
145- echo "user = www-data" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-pool.conf && \
146- echo "group = www-data" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-pool.conf
147-
148144############################################
149- #
145+ # Composer Build
150146############################################
151147FROM base AS composer
152148
@@ -186,6 +182,8 @@ RUN if [ -f yarn.lock ]; then \
186182############################################
187183FROM base
188184
185+ ENV AUTORUN_ENABLED=true
186+ ENV PHP_OPCACHE_ENABLE=1
189187ENV PHP_MEMORY_LIMIT=512M
190188ENV SSL_MODE=mixed
191189
@@ -244,7 +242,7 @@ services:
244242
245243+ schedule:
246244+ image: 'sail-8.4/app'
247- + command: ["php", "/var/www/html/ artisan", "schedule:work"]
245+ + command: ["artisan", "schedule:work"]
248246+ stop_signal: SIGTERM
249247+ healthcheck:
250248+ test: ["CMD", "healthcheck-schedule"]
@@ -260,7 +258,7 @@ services:
260258
261259+ queue:
262260+ image: 'sail-8.4/app'
263- + command: ["php", "/var/www/html/ artisan", "queue:work ", "--tries=3"]
261+ + command: ["artisan", "queue:listen ", "--tries=3"]
264262+ stop_signal: SIGTERM
265263+ healthcheck:
266264+ test: ["CMD", "healthcheck-queue"]
@@ -282,7 +280,7 @@ To add more PHP extensions or customize the image, create your own `Dockerfile`
282280# ## Example: Adding PHP Extensions
283281
284282` ` ` dockerfile
285- FROM ghcr.io/yieldstudio/php:8.3-nginx
283+ FROM ghcr.io/yieldstudio/php:8.3-frankenphp
286284
287285# Install additional PHP extensions
288286RUN install-php-extensions \
@@ -305,10 +303,10 @@ RUN docker-php-ext-install pdo_mysql
305303# ## Build Your Custom Image
306304
307305` ` ` bash
308- docker build -t my-custom-php:8.3-nginx .
306+ docker build -t my-custom-php:8.3-frankenphp .
309307` ` `
310308
311- You can now use `my-custom-php:8.3-nginx ` in your projects.
309+ You can now use `my-custom-php:8.3-frankenphp ` in your projects.
312310
313311# # Build & CI
314312
0 commit comments