rootless nginx-www

This commit is contained in:
Viyurz 2023-12-06 07:42:31 +00:00
parent a50fbbbadc
commit c3eab0133b
2 changed files with 11 additions and 1 deletions

View file

@ -1,8 +1,9 @@
services:
nginx-www:
image: nginx:latest
image: nginx:alpine
restart: always
container_name: nginx-www
user: '101:101'
ports:
- "[::1]:8082:80"
volumes:

View file

@ -1,3 +1,6 @@
user nginx;
pid /tmp/nginx.pid;
worker_processes auto;
worker_cpu_affinity auto;
worker_rlimit_nofile 2048;
@ -22,6 +25,12 @@ http {
include /etc/nginx/mime.types;
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 {
listen 80 default_server;
listen [::]:80 default_server;