diff --git a/Dockerfile b/Dockerfile index 67bde3e..c16266c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -160,7 +160,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \ echo /etc/apk/respositories && \ apk update && apk upgrade &&\ - apk add --no-cache --virtual .sys-deps \ + apk add --no-cache \ bash \ openssh-client \ wget \ @@ -211,8 +211,8 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo pip install -U pip && \ pip install -U certbot && \ mkdir -p /etc/letsencrypt/webrootauth && \ -# apk del gcc musl-dev linux-headers libffi-dev augeas-dev python-dev make autoconf && \ - apk del .sys-deps + apk del gcc musl-dev linux-headers libffi-dev augeas-dev python-dev make autoconf +# apk del .sys-deps # ln -s /usr/bin/php7 /usr/bin/php ADD conf/supervisord.conf /etc/supervisord.conf @@ -271,4 +271,5 @@ ADD errors/ /var/www/errors EXPOSE 443 80 +WORKDIR ["/"] CMD ["/start.sh"] diff --git a/README.md b/README.md index 0e5cc31..4acf179 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you have improvements or suggestions please open an issue or pull request on | Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version | |-----|-------|-----|--------|--------| | latest | Master Branch |1.14.0 | 7.2.7 | 3.7 | -| 1.5.3 | 7.2 Branch |1.14.0 | 7.2.7 | 3.7 | +| 1.5.4 | 7.2 Branch |1.14.0 | 7.2.7 | 3.7 | For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md) diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 2f5e0e3..0000000 --- a/TODO.md +++ /dev/null @@ -1,5 +0,0 @@ -## To Do List - -- Docker swarm guide -- AWS ECS guide -- Kubernetes guide diff --git a/conf/nginx-site.conf b/conf/nginx-site.conf index 31a967b..4d9c6a6 100644 --- a/conf/nginx-site.conf +++ b/conf/nginx-site.conf @@ -31,13 +31,16 @@ server { internal; } - location ^~ /ngd-style.css { - alias /var/www/errors/style.css; + location ^~ /sad.svg { + alias /var/www/errors/sad.svg; access_log off; } - - location ^~ /ngd-sad.svg { - alias /var/www/errors/sad.svg; + location ^~ /twitter.svg { + alias /var/www/errors/twitter.svg; + access_log off; + } + location ^~ /gitlab.svg { + alias /var/www/errors/gitlab.svg; access_log off; } diff --git a/conf/supervisord.conf b/conf/supervisord.conf index d4c1da6..889087e 100644 --- a/conf/supervisord.conf +++ b/conf/supervisord.conf @@ -22,14 +22,17 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket [program:php-fpm] -command = /usr/local/sbin/php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.d/www.conf +command = /usr/local/sbin/php-fpm --force-stderr --nodaemonize --fpm-config /usr/local/etc/php-fpm.d/www.conf autostart=true autorestart=true priority=5 +stdout_events_enabled=true +stderr_events_enabled=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +stopsignal=QUIT [program:nginx] command=/usr/sbin/nginx -g "daemon off; error_log /dev/stderr info;" @@ -42,6 +45,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +stopsignal=QUIT [include] files = /etc/supervisor/conf.d/*.conf diff --git a/docs/versioning.md b/docs/versioning.md index 7342daf..bf82a29 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -23,6 +23,7 @@ The latest tag will always follow the master branch in git. the other versions w | 1.5.1 | 7.2.6 |1.14.0 | 7.2.4 | 3.7 | 0.3.6 | | 1.5.2 | 7.2.6 |1.14.0 | 7.2.4 | 3.7 | 0.3.7 | | 1.5.3 | 7.2.7 |1.14.0 | 7.2.4 | 3.7 | 0.3.7 | +| 1.5.4 | 7.2.7 |1.14.0 | 7.2.4 | 3.7 | 0.3.8 | These tags will be created on GitLab and as tags in docker hub. diff --git a/errors/404.html b/errors/404.html index 1c3db7a..4c33c47 100644 --- a/errors/404.html +++ b/errors/404.html @@ -2,38 +2,15 @@
- - + +Looks like we can't find that page
-