Updated default port to be compliant with reccomendations

This commit is contained in:
Edward Marshall
2016-09-09 10:20:52 +01:00
parent cd279c1ec7
commit ab5f63c0ac
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ FROM python:3.5-alpine
RUN pip install prometheus_client requests
ENV BIND_PORT 1234
ENV BIND_PORT 9170
ENV IMAGES "prom/prometheus, prom/node-exporter"
ADD . /usr/src/app
+5 -5
View File
@@ -5,20 +5,20 @@ Exposes metrics of container pulls and stars from the Docker Hub API, to a Prome
## Configuration
The image is setup to take two parameters from environment variables:
`BIND_PORT` The port you wish to run the container on, defaults to 1234
`BIND_PORT` The port you wish to run the container on, defaults to 9170
`IMAGES` The images you wish to monitor, expected in the format "user/image1, user/image2". Can be across different dockerhub users.
## Install and deploy
Run manually from Docker Hub:
```
docker run -d --restart=always -p 1234:1234 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" infinityworks/docker-hub-exporter
docker run -d --restart=always -p 9170:9170 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" infinityworks/docker-hub-exporter
```
Build a docker image:
```
docker build -t <image-name> .
docker run -d --restart=always -p 1234:1234 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" <image-name>
docker run -d --restart=always -p 9170:9170 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" <image-name>
```
## Docker compose
@@ -28,13 +28,13 @@ docker-hub-exporter:
tty: true
stdin_open: true
expose:
- 1234:1234
- 9170:9170
image: infinityworks/docker-hub-exporter
```
## Metrics
Metrics will be made available on port 1234 by default
Metrics will be made available on port 9170 by default
```
# HELP docker_hub_pull_count counter of docker_pulls from the public API