Compare commits

..

No commits in common. "5612085304a42d7ae6371a21960f4a49334d5d38" and "abac3e6949642417d81894a5a885c971442aa6e2" have entirely different histories.

3 changed files with 1 additions and 34 deletions

View File

@ -2,13 +2,7 @@ FROM alpine:3.21
RUN \ RUN \
apk -U upgrade && \ apk -U upgrade && \
apk add tini nginx openssh-server \ apk add tini nginx openssh-server php84 php84-fpm php83 php83-fpm php82 php82-fpm
php84 php84-fpm php84-mbstring php84-curl php84-ctype php84-dom php84-gd php84-json php84-openssl php84-session php84-simplexml php84-xml php84-zip \
php84-apcu php84-opcache php84-pecl-yaml \
php83 php83-fpm php83-mbstring php83-curl php83-ctype php83-dom php83-gd php83-json php83-openssl php83-session php83-simplexml php83-xml php83-zip \
php83-apcu php83-opcache php83-pecl-yaml \
php82 php82-fpm php82-mbstring php82-curl php82-ctype php82-dom php82-gd php82-json php82-openssl php82-session php82-simplexml php82-xml php82-zip \
php82-apcu php82-opcache php82-pecl-yaml
COPY rootfs / COPY rootfs /

View File

@ -24,10 +24,6 @@ services:
PUID: 1000 # default: 1000 PUID: 1000 # default: 1000
PGID: 1000 # default: 1000 PGID: 1000 # default: 1000
TZ: Etc/UTC # default: Etc/UTC TZ: Etc/UTC # default: Etc/UTC
FPM_MAX_CHILDREN: 5 # default: 5
FPM_START_SERVERS: 1 # default: 1
FPM_MIN_SPARE_SERVERS: 1 # default: 1
FPM_MAX_SPARE_SERVERS: 3 # default: 3
``` ```
The `/data/www` directory and its contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start. The `/data/www` directory and its contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start.

View File

@ -17,29 +17,6 @@ chown "${PUID}:${GROUPNAME}" "${WEBROOT}" -R
find "${WEBROOT}" -type d -exec chmod 0755 {} \; find "${WEBROOT}" -type d -exec chmod 0755 {} \;
find "${WEBROOT}" -type f -exec chmod 0644 {} \; find "${WEBROOT}" -type f -exec chmod 0644 {} \;
FPM_MAX_CHILDREN=${FPM_MAX_CHILDREN:-5}
FPM_START_SERVERS=${FPM_START_SERVERS:-1}
FPM_MIN_SPARE_SERVERS=${FPM_MIN_SPARE_SERVERS:-1}
FPM_MAX_SPARE_SERVERS=${FPM_MAX_SPARE_SERVERS:-3}
# set php config
case "${PHP}" in
"php84"|"php83"|"php82")
cat >"/etc/${PHP}/php-fpm-d/www.conf" <<EOF
[www]
user = ${USERNAME}
group = ${GROUPNAME}
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = ${FPM_MAX_CHILDREN}
pm.start_servers = ${FPM_START_SERVERS}
pm.min_spare_servers = ${FPM_MIN_SPARE_SERVERS}
pm.max_spare_servers = ${FPM_MAX_SPARE_SERVERS}
EOF
;;
*) ;;
esac
# start php # start php
case "${PHP}" in case "${PHP}" in
"php84") "php84")