Fix compose.yaml для сервиса security_init
This commit is contained in:
+9
-1
@@ -33,7 +33,9 @@ services:
|
||||
if [ ! -f /certs/ca.crt ]; then
|
||||
openssl genrsa -out /certs/ca.key 4096
|
||||
openssl req -x509 -new -nodes -key /certs/ca.key -sha256 -days 3650 \
|
||||
-subj "$${CA_SUBJECT}" -out /certs/ca.crt
|
||||
-subj "$${CA_SUBJECT}" -out /certs/ca.crt \
|
||||
-addext "keyUsage=critical,keyCertSign,cRLSign" \
|
||||
-addext "basicConstraints=critical,CA:TRUE"
|
||||
fi
|
||||
# --- LB external server cert ---
|
||||
if [ ! -f /certs/server.crt ]; then
|
||||
@@ -656,6 +658,12 @@ services:
|
||||
cap_add:
|
||||
- NET_BIND_SERVICE
|
||||
- CHOWN
|
||||
# lab7 fix: nginx master стартует от root и сбрасывает привилегии
|
||||
# воркеров до пользователя nginx (UID 101). Для setgid/setuid нужны
|
||||
# соответствующие capabilities, иначе воркеры падают с
|
||||
# "setgid(101) failed (1: Operation not permitted)".
|
||||
- SETGID
|
||||
- SETUID
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user