Skip to content

Commit ab93454

Browse files
authored
Merge pull request #51 from bryanlatten/feature-back-to-root
Nginx: running master process back at root
2 parents b273cad + 34e6b31 commit ab93454

File tree

5 files changed

+5
-16
lines changed

5 files changed

+5
-16
lines changed

container/root/etc/cont-init.d/01-stdout.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

container/root/etc/fix-attrs.d/02-tmp

Lines changed: 0 additions & 3 deletions
This file was deleted.

container/root/etc/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# add to the /etc/cont-init.d/nginx script
88
#############################################################
99

10-
# Only set when running with superuser permissions, otherwise causes a warning
11-
# user www-data;
10+
# Running workers as non-root users
11+
user www-data;
1212

1313
worker_processes auto;
1414

container/root/etc/services-available/nginx/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ trap -x
1515
}
1616
}
1717

18-
s6-setuidgid www-data nginx -g "daemon off;"
18+
nginx -g "daemon off;"

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ubuntu:
44
- '8080:8080'
55
environment:
66
SERVER_LOG_MINIMAL: 1
7-
SERVER_APP_NAME: docker-test
7+
SERVER_APP_NAME: docker-ubuntu
88
S6_KILL_FINISH_MAXTIME: 1
99
S6_KILL_GRACETIME: 1
1010
SERVER_WORKER_PROCESSES: 1
@@ -21,7 +21,7 @@ alpine:
2121
- '8081:8080'
2222
environment:
2323
SERVER_LOG_MINIMAL: 1
24-
SERVER_APP_NAME: docker-test
24+
SERVER_APP_NAME: docker-alpine
2525
S6_KILL_FINISH_MAXTIME: 1
2626
S6_KILL_GRACETIME: 1
2727
SERVER_WORKER_PROCESSES: 1

0 commit comments

Comments
 (0)