1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-07 16:16:09 +02:00

refactor: move nginx daemon off to procfile

This commit is contained in:
Nicolas Duchon 2023-12-25 19:16:10 +01:00
parent 4a8aa5db67
commit de4cb3d2b0
3 changed files with 3 additions and 5 deletions

View File

@ -21,8 +21,7 @@ RUN apk add --no-cache --virtual .run-deps \
&& update-ca-certificates
# Configure Nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
RUN sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& mkdir -p '/etc/nginx/dhparam'

View File

@ -20,8 +20,7 @@ RUN apt-get update \
&& rm -r /var/lib/apt/lists/*
# Configure Nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
RUN sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& mkdir -p '/etc/nginx/dhparam'

View File

@ -1,2 +1,2 @@
dockergen: docker-gen -watch -notify "nginx -s reload" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
nginx: nginx
nginx: nginx -g "daemon off;"