Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 8.1-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.1-prod/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.1/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.2-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.2-prod/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.2/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.3-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.3-prod/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.3/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.4-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.4-prod/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
4 changes: 2 additions & 2 deletions 8.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ WORKDIR /app
RUN adduser -D -u 1337 kool \
&& addgroup kool www-data \
# dockerize
&& ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${ARCH}-v0.9.3.tar.gz" | tar xz \
&& DOCKERIZE_ARCH="$( [ "$(uname -m)" = "aarch64" ] && echo arm64 || echo amd64 )" \
&& curl -L "https://github.com/jwilder/dockerize/releases/download/v0.9.3/dockerize-linux-${DOCKERIZE_ARCH}-v0.9.3.tar.gz" | tar xz \
&& mv dockerize /usr/local/bin/dockerize \
# deps
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \
Expand Down
5 changes: 5 additions & 0 deletions 8.4/zz-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ listen = {{ .Env.PHP_FPM_LISTEN }}
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = {{ .Env.PHP_FPM_PM }}{{ else }}pm = dynamic{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Variable | Default Value | Description
**PHP_POST_MAX_SIZE** | `25M` | Changes PHP max size of post data allowed
**PHP_MAX_EXECUTION_TIME** | `30` | Changes PHP maximum time is allowed to run a script
**PHP_FPM_LISTEN** | `9000` | Changes the PORT address of the FastCGI requests
**PHP_FPM_PM** | `dynamic` | PHP-FPM process manager strategy
**PHP_FPM_MAX_CHILDREN** | `10` | Changes the number of child processes to be used on FPM
**PHP_FPM_REQUEST_TERMINATE_TIMEOUT** | `60` | Changes FPM timeout to serve a single request

Expand Down
5 changes: 5 additions & 0 deletions template/zz-docker-conf.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
listen.owner = kool
listen.group = kool

; Choose how the process manager will control the number of child processes.
; Possible Values: static, dynamic, ondemand (check www.conf for full documentation).
; Note: This value is mandatory.
@{{ if or (eq .Env.PHP_FPM_PM "static") (eq .Env.PHP_FPM_PM "dynamic") (eq .Env.PHP_FPM_PM "ondemand") }}pm = @{{ .Env.PHP_FPM_PM }}@{{ else }}pm = dynamic@{{ end }}

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
Expand Down