Skip to content

Commit

Permalink
use app instead of www-data again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryangr0 committed May 4, 2024
1 parent 8a3c09e commit d7fb6c3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docker-compose.chatgpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:

php-fpm:
build: ./docker-compose/php-fpm
user: www-data
user: app
ports:
- 9000
- 9003
Expand Down
4 changes: 2 additions & 2 deletions images/php/8.1/conf/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ listen = 127.0.0.1:9000
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
;listen.owner = www-data
;listen.group = www-data
;listen.owner = app
;listen.group = app
;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
Expand Down
4 changes: 2 additions & 2 deletions images/php/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ARG REDIS_VERSION=6.0.2
ARG SSH2_VERSION=1.3.1

# Environment configuration for consistent user setup across stages
ENV APP_USER=www-data \
APP_GROUP=www-data \
ENV APP_USER=app \
APP_GROUP=app \
APP_UID=1000 \
APP_GID=1000

Expand Down
8 changes: 4 additions & 4 deletions images/php/8.2/conf/php-fpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ daemonize = no
; if we send this to /proc/self/fd/1, it never appears
access.log = /proc/self/fd/2

;user = www-data
;group = www-data
;user = app
;group = app

listen = /sock/docker.sock
listen.owner = www-data
listen.group = www-data
listen.owner = app
listen.group = app
listen.mode = 0660

pm = dynamic
Expand Down
8 changes: 4 additions & 4 deletions images/php/8.2/conf/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,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 = www-data
group = www-data
user = app
group = app

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
Expand All @@ -44,8 +44,8 @@ listen = 127.0.0.1:9000
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
;listen.owner = www-data
;listen.group = www-data
;listen.owner = app
;listen.group = app
;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
Expand Down
4 changes: 2 additions & 2 deletions images/php/8.3/conf/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ listen = 127.0.0.1:9000
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
;listen.owner = www-data
;listen.group = www-data
;listen.owner = app
;listen.group = app
;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
Expand Down

0 comments on commit d7fb6c3

Please sign in to comment.