소스 검색

Merge pull request #1252 from stealthybox/nginx-exec

Update nginx envsubst example to use exec
yosifkit 7 년 전
부모
커밋
170aab3bc4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      nginx/content.md

+ 1 - 1
nginx/content.md

@@ -82,7 +82,7 @@ web:
   environment:
    - NGINX_HOST=foobar.com
    - NGINX_PORT=80
-  command: /bin/bash -c "envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
+  command: /bin/bash -c "envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
 ```
 
 The `mysite.template` file may then contain variable references like this: