Fix cert-gen command YAML folding issue with literal block scalar
This commit is contained in:
+7
-7
@@ -3,15 +3,15 @@ services:
|
|||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
volumes:
|
volumes:
|
||||||
- tls-certs:/etc/nginx/ssl
|
- tls-certs:/etc/nginx/ssl
|
||||||
command: >
|
command: |
|
||||||
sh -c "
|
sh -c '
|
||||||
apk add --no-cache openssl &&
|
apk add --no-cache openssl &&
|
||||||
openssl req -x509 -nodes -days 3650 -newkey rsa:2048
|
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
|
||||||
-keyout /etc/nginx/ssl/key.pem
|
-keyout /etc/nginx/ssl/key.pem \
|
||||||
-out /etc/nginx/ssl/cert.pem
|
-out /etc/nginx/ssl/cert.pem \
|
||||||
-subj '/CN=localhost' &&
|
-subj "/CN=localhost" &&
|
||||||
chmod 644 /etc/nginx/ssl/cert.pem /etc/nginx/ssl/key.pem
|
chmod 644 /etc/nginx/ssl/cert.pem /etc/nginx/ssl/key.pem
|
||||||
"
|
'
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user