Skip to content

Commit

Permalink
add non-root nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
thueske committed Jun 26, 2024
1 parent 4b66287 commit cbba7de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion conf/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
pid /tmp/nginx.pid;


events {
Expand All @@ -11,6 +11,12 @@ events {


http {
proxy_temp_path /tmp/proxy_temp;
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;

include /etc/nginx/mime.types;
default_type application/octet-stream;

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- db

web:
image: nginx:stable-alpine
image: nginxinc/nginx-unprivilege:stable-alpine
restart: unless-stopped
environment:
- TZ=Europe/Berlin
Expand Down

0 comments on commit cbba7de

Please sign in to comment.