Updated nextcloud to work dynamically with www-data ID and GID
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
FROM nginx:alpine
|
||||
#FROM nginx:alpine
|
||||
FROM nginx:bullseye
|
||||
|
||||
RUN adduser --system --no-create-home --home /nonexistent --gecos 'www-data user' --shell /bin/false --uid 82 www-data
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN usermod -u $UID -o www-data
|
||||
|
||||
#RUN adduser --system --no-create-home --home /nonexistent --gecos 'www-data user' --shell /bin/false --uid $UID www-data
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
@@ -31,7 +31,7 @@ http {
|
||||
#gzip on;
|
||||
|
||||
upstream php-handler {
|
||||
server app:9000;
|
||||
server nextcloud:9000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user