<commit_before># Docker Image for Graphite & Statsd

## Get Graphite & Statsd running instantly

This is a fork from [hopsoft](https://github.com/hopsoft/docker-graphite-statsd) adding a couple of extra things. Massive love to Hopsoft for setting up the original.

In this image, Graphite is always setup with Basic Auth (feed your .htpasswd file when starting) and the Graphite data dir is set to */data/graphite*.

## Quick Start

```sh
sudo docker run -d \
  --name graphite \
  -p 80:80 \
  -p 2003:2003 \
  -p 8125:8125/udp \
  sitespeedio/graphite
```

This starts a Docker container named: **graphite** with Basic Auth **guest/guest**. Please change that by feeding your own.htpasswd file when starting the container like this:

```sh
sudo docker run -d \
  --name graphite \
  -p 80:80 \
  -p 2003:2003 \
  -p 8125:8125/udp \
  -v /local/path/to/.htpasswd:/etc/nginx/.htpasswd \
  sitespeedio/graphite
```

And the final config that you should do, is map the graphite data dir outside of your container:

```sh<commit_msg>better instructions<commit_after># Docker Image for Graphite & Statsd

## Get Graphite & Statsd running instantly

This is a fork from [hopsoft](https://github.com/hopsoft/docker-graphite-statsd) adding a couple of extra things. Massive love to Hopsoft for setting up the original.

In this image, Graphite is always setup with Basic Auth (feed your .htpasswd file when starting) and the Graphite data dir is set to */data/graphite*.

## Quick Start

```sh
sudo docker run -d \
  --name graphite \
  -p 80:80 \
  -p 2003:2003 \
  -p 8125:8125/udp \
  sitespeedio/graphite
```

This starts a Docker container named: **graphite** with Basic Auth **guest/guest**. Please change the login that by feeding your own .htpasswd file when starting the container ([more info about how to create your .htpasswd file](http://httpd.apache.org/docs/2.2/programs/htpasswd.html)):

```sh
sudo docker run -d \
  --name graphite \
  -p 80:80 \
  -p 2003:2003 \
  -p 8125:8125/udp \
  -v /local/path/to/.htpasswd:/etc/nginx/.htpasswd \
  sitespeedio/graphite
```

And the final config that you should do, is map the graphite data dir outside of your container:

```sh
{'fraction_non_alphanumeric': 0.10651974288337925, 'fraction_numerical': 0.03764921946740129, 'mean_word_length': 3.4560327198364007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5572566', 'n_tokens_mistral': 785, 'n_tokens_neox': 690, 'n_words': 276}