瀏覽代碼

Update nginx envsubst example to use exec

leigh schrandt 7 年之前
父節點
當前提交
b3a3e6a522
共有 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: