Commit 866ffe3f authored by Andrew Schmelyun's avatar Andrew Schmelyun
Browse files

Swaps user/group 1000:1000 for laravel:laravel across php/nginx containers

parent 04c035b1
FROM nginx:stable-alpine
RUN addgroup -S 1000 && adduser -S 1000 -G 1000
ADD ./nginx/nginx.conf /etc/nginx/nginx.conf
ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf
\ No newline at end of file
ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf
RUN mkdir -p /var/www/html
RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
RUN chown laravel:laravel /var/www/html
\ No newline at end of file
user 1000;
user laravel;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
......
FROM php:7.4-fpm-alpine
RUN addgroup -S 1000 && adduser -S 1000 -G 1000
ADD ./php/www.conf /usr/local/etc/php-fpm.d/www.conf
RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
RUN mkdir -p /var/www/html
RUN chown laravel:laravel /var/www/html
WORKDIR /var/www/html
RUN docker-php-ext-install pdo pdo_mysql
......@@ -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 = 1000
group = 1000
user = laravel
group = laravel
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment