Run php-fpm as user www

This commit is contained in:
Lou Knauer
2021-07-16 09:01:46 +02:00
parent d38a526bff
commit 0d0ad58045
3 changed files with 9 additions and 2 deletions

View File

@@ -77,6 +77,9 @@ COPY symfony.pool.conf /etc/php8/php-fpm.d/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN addgroup -S www
RUN adduser -S -D -H -g "php-fpm user" -G www -s /sbin/nologin www
ARG APP_ENVIRONMENT
ENV APP_ENV=${APP_ENVIRONMENT}
ENV APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629

View File

@@ -6,8 +6,8 @@
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = nobody
group = nobody
user = www
group = www
; The address on which to accept FastCGI requests.
; Valid syntaxes are: