rootless nginx-www
This commit is contained in:
parent
a50fbbbadc
commit
c3eab0133b
2 changed files with 11 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
||||||
services:
|
services:
|
||||||
nginx-www:
|
nginx-www:
|
||||||
image: nginx:latest
|
image: nginx:alpine
|
||||||
restart: always
|
restart: always
|
||||||
container_name: nginx-www
|
container_name: nginx-www
|
||||||
|
user: '101:101'
|
||||||
ports:
|
ports:
|
||||||
- "[::1]:8082:80"
|
- "[::1]:8082:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
user nginx;
|
||||||
|
pid /tmp/nginx.pid;
|
||||||
|
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
worker_cpu_affinity auto;
|
worker_cpu_affinity auto;
|
||||||
worker_rlimit_nofile 2048;
|
worker_rlimit_nofile 2048;
|
||||||
|
@ -22,6 +25,12 @@ http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
client_body_temp_path /tmp/client_temp;
|
||||||
|
proxy_temp_path /tmp/proxy_temp_path;
|
||||||
|
fastcgi_temp_path /tmp/fastcgi_temp;
|
||||||
|
uwsgi_temp_path /tmp/uwsgi_temp;
|
||||||
|
scgi_temp_path /tmp/scgi_temp;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
Loading…
Reference in a new issue