skip to Main Content

Docker: NGINX and PHP: Why change the default user/group?

I started learning about Docker and setting up NGINX and PHP. I looked at some examples and saw the following example: https://github.com/aschmelyun/lc-the-docker-tutorial/blob/main/nginx.dockerfile There are two dockerfiles, one for NGINX (nginx.dockerfile): FROM nginx:stable-alpine ENV NGINXUSER=laravel ENV NGINXGROUP=laravel RUN mkdir -p /var/www/html/public…

VIEW QUESTION
Back To Top
Search