diff --git a/stx/dockerfiles/stx-aptly.Dockerfile b/stx/dockerfiles/stx-aptly.Dockerfile index cedc01a90..b3a39f5af 100644 --- a/stx/dockerfiles/stx-aptly.Dockerfile +++ b/stx/dockerfiles/stx-aptly.Dockerfile @@ -65,7 +65,6 @@ COPY stx/toCOPY/aptly/aptly.conf /etc/aptly.conf COPY stx/toCOPY/aptly/supervisord.aptly.conf /etc/supervisor/conf.d/aptly.conf # Configure Nginx -RUN echo "daemon off;" >> /etc/nginx/nginx.conf COPY stx/toCOPY/aptly/nginx.conf.template /etc/nginx/nginx.conf.template COPY stx/toCOPY/aptly/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf diff --git a/stx/toCOPY/aptly/supervisord.nginx.conf b/stx/toCOPY/aptly/supervisord.nginx.conf index dbd9b95d7..087169719 100644 --- a/stx/toCOPY/aptly/supervisord.nginx.conf +++ b/stx/toCOPY/aptly/supervisord.nginx.conf @@ -1,4 +1,5 @@ [program:nginx] -command=/usr/sbin/nginx +# "daemon off" should be used in Docker or under Supervisord +command=/usr/sbin/nginx -g "daemon off;" redirect_stderr=true stdout_logfile_maxbytes=1MB