Sign inSign up

bnotions/graphite

By bnotions

Updated almost 11 years ago

This is a modified version of nickstenning/graphite that works with the latest version of docker (0.8.1) and supports setting the django SECRET_KEY via environment variable.

Image
3

1.2K

bnotions/graphite repository overview

Ports

  • 80 - nginx proxy to graphite
  • 2003 - carbon-cache line receiver
  • 2004 - carbon-cache pickle receiver
  • 7002 - carbon-cache query port

Volumes

  • /opt/graphite/storage/whisper - Whisper data file directory

    It is recommended that you keep your whisper data files stored on your host system outside of the docker container.

Building

  • Default docker build example:

    docker build -rm -t bnotions/graphite .

Running

  • Default docker run example:

    docker run -d bnotions/graphite

  • Publish all ports from container (docker will handle port mapping)

    docker run -P -e SECRET_KEY='random-secret-key' -d bnotions/graphite

  • Publish all ports from container to host (manual port mapping)

    docker run -p 80:80 -p 2003:2003 -p 2004:2004 -p 7002:7002 -e SECRET_KEY='random-secret-key' -d bnotions/graphite

  • Mount data volume from host for whisper data storage

    docker run -v /data/graphite:/opt/graphite/storage/whisper -e SECRET_KEY='random-secret-key' -d bnotions/graphite

  • Publish all ports to host and mount data volume from host

    docker run -p 80:80 -p 2003:2003 -p 2004:2004 -p 7002:7002 -v /data/graphite:/opt/graphite/storage/whisper -e SECRET_KEY='random-secret-key' -d bnotions/graphite

Notes

  • django admin - default credentials are admin:admin
  • secret key - setting the secret key variable is optional but highly recommended

Tag summary

Content type

Image

Digest

sha256:76023d4b6

Size

101.4 MB

Last updated

almost 11 years ago

docker pull bnotions/graphite