From c8a5954eb7329a8ab1f72d7e261ceef7b635164f Mon Sep 17 00:00:00 2001 From: Denys Zhdanov Date: Wed, 17 Jan 2018 13:23:46 +0100 Subject: [PATCH] Adding mapping for internal Graphite gunicorn port --- Dockerfile | 2 +- README.md | 1 + conf/etc/service/graphite/run | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ad3358..153ea68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -110,7 +110,7 @@ RUN apt-get clean\ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # defaults -EXPOSE 80 2003-2004 2023-2024 8125 8125/udp 8126 +EXPOSE 80 2003-2004 2023-2024 8080 8125 8125/udp 8126 VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/opt/graphite/webapp/graphite/functions/custom", "/etc/nginx", "/opt/statsd", "/etc/logrotate.d", "/var/log"] WORKDIR / ENV HOME /root diff --git a/README.md b/README.md index 7c8a004..4527745 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Host | Container | Service 2004 | 2004 | [carbon receiver - pickle](http://graphite.readthedocs.io/en/latest/feeding-carbon.html#the-pickle-protocol) 2023 | 2023 | [carbon aggregator - plaintext](http://graphite.readthedocs.io/en/latest/carbon-daemons.html#carbon-aggregator-py) 2024 | 2024 | [carbon aggregator - pickle](http://graphite.readthedocs.io/en/latest/carbon-daemons.html#carbon-aggregator-py) +8080 | 8080 | Graphite internal gunicorn port (without Nginx proxying). 8125 | 8125 | [statsd](https://github.com/etsy/statsd/blob/master/docs/server.md) 8126 | 8126 | [statsd admin](https://github.com/etsy/statsd/blob/v0.7.2/docs/admin_interface.md) diff --git a/conf/etc/service/graphite/run b/conf/etc/service/graphite/run index 811a324..b5c2b06 100755 --- a/conf/etc/service/graphite/run +++ b/conf/etc/service/graphite/run @@ -1,3 +1,3 @@ #!/bin/bash -export PYTHONPATH=/opt/graphite/webapp && exec /usr/local/bin/gunicorn wsgi --workers=4 --bind=127.0.0.1:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite +export PYTHONPATH=/opt/graphite/webapp && exec /usr/local/bin/gunicorn wsgi --workers=4 --bind=0.0.0.0:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite