diff --git a/Dockerfile b/Dockerfile index 4011644..d852e3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,21 +46,21 @@ add ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Nginx # # graphite -expose 85:80 +expose 80 # grafana -expose 3000:81 +expose 3000 # Carbon line receiver port -expose 2003:2003 +expose 2003 # Carbon pickle receiver port -expose 2004:2004 +expose 2004 # Carbon cache query port -expose 7002:7002 +expose 7002 # Statsd UDP port -expose 8125:8125/udp +expose 8125/udp # Statsd Management port -expose 8126:8126 +expose 8126 add ./bin/init /usr/bin/init diff --git a/README.md b/README.md index c823262..c017c0e 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,15 @@ An all-in-one image running graphite and carbon-cache. This image contains a sensible default configuration of graphite and -carbon-cache. Starting this container will, by default, bind the the following -host ports: +carbon-cache. Starting this container will expose following ports: - `80`: the graphite web interface - `3000`: the grafana web interface - `2003`: the carbon-cache line receiver (the standard graphite protocol) - `2004`: the carbon-cache pickle receiver - `7002`: the carbon-cache query port (used by the web interface) +- `8125`: the statsd UDP port +- `8126`: the statsd management port You can log into the administrative interface of graphite-web (a Django @@ -28,6 +29,13 @@ recommended) you can use docker's data volumes feature. For example, to store graphite's metric database at `/data/graphite` on the host, you could use: docker run -v /data/graphite:/var/lib/graphite/storage/whisper \ + -p 80:80 \ + -p 3000:3000 \ + -p 2003:2003 \ + -p 2004:2004 \ + -p 7002:7002 \ + -p 8125:8125/udp \ + -p 8126:8126 \ -d nickstenning/graphite ### Technical details