diff --git a/Dockerfile b/Dockerfile index 8a60546..6bd7579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx:1.17.3-alpine +FROM nginxinc/nginx-unprivileged:1.17.8-alpine LABEL MAINTAINER="BBT Software AG " ENV CHK_DOCKER_API_VERSION v1.38 @@ -10,10 +10,15 @@ ENV TZ UTC COPY index.html /usr/share/nginx/html/index.html +USER root +RUN chmod 775 /usr/share/nginx/html/ +RUN chown nginx:nginx /usr/share/nginx/html/ RUN apk add --no-cache bash curl jq && \ echo $TZ > /etc/timezone +USER nginx COPY docker-entrypoint.sh /usr/local/bin/ + ENTRYPOINT ["docker-entrypoint.sh"] EXPOSE 80 diff --git a/README.md b/README.md index 2bf7eb4..de12afa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Docker image to monitor a [Docker Swarm](https://docs.docker.com/engine/swarm/). +Supported monitoring systems: + +* [PRTG Network Monitor](https://www.paessler.com/prtg/) + ## Information | Service | Stats | @@ -27,8 +31,9 @@ docker pull bbtsoftwareag/swarm-monitor | Tag | Description | Size | |--------|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------| | latest | Latest master build | ![Size](https://shields.beevelop.com/docker/image/image-size/bbtsoftwareag/swarm-monitor/latest.svg?style=flat-square) | -| 1.0.0 | Release [1.0.0](https://github.com/bbtsoftware/docker-swarm-monitor/releases/tag/1.0.0) | ![Size](https://shields.beevelop.com/docker/image/image-size/bbtsoftwareag/swarm-monitor/1.0.0.svg?style=flat-square) | +| 1.2.0 | Release [1.2.0](https://github.com/bbtsoftware/docker-swarm-monitor/releases/tag/1.2.0) | ![Size](https://shields.beevelop.com/docker/image/image-size/bbtsoftwareag/swarm-monitor/1.2.0.svg?style=flat-square) | | 1.1.0 | Release [1.1.0](https://github.com/bbtsoftware/docker-swarm-monitor/releases/tag/1.1.0) | ![Size](https://shields.beevelop.com/docker/image/image-size/bbtsoftwareag/swarm-monitor/1.1.0.svg?style=flat-square) | +| 1.0.0 | Release [1.0.0](https://github.com/bbtsoftware/docker-swarm-monitor/releases/tag/1.0.0) | ![Size](https://shields.beevelop.com/docker/image/image-size/bbtsoftwareag/swarm-monitor/1.0.0.svg?style=flat-square) | ### Volumes @@ -92,4 +97,4 @@ docker run -d \ -e CHK_MONITOR=prtg \ -e "CHK_SERVICES=monitor_app.1 proxy_app.3" \ bbtsoftwareag/swarm-monitor:latest -``` \ No newline at end of file +```