This project provides resources for deploying Graphite in Docker.
RHEL7
RHEL7 Subscription
EPEL for RHEL7
-
Build the Graphite Carbon image:
$ cd carbon $ docker build -t graphite-carbon .
-
Build the Graphite Web image:
$ cd web $ docker build -t graphite-web .
The Carbon image copies in configuration files found in the carbon/rhel directory. To produce a Carbon image with custom configuration, the following files may be modified:
- carbon/rhel/etc/carbon/carbon.conf
- carbon/rhel/etc/carbon/storage-schemas.conf
Note: Before launching Graphite, you will have needed to configured and started a database for use with Graphite. The following steps assume this has already been done in a container named "graphite-db".
-
Launch Carbon:
$ docker run -d -P --name graphite-carbon graphite-carbon
-
Initialize the Graphite database:
$ docker run --rm --link graphite-db:db \ --entrypoint /usr/lib/python2.7/site-packages/graphite/manage.py \ graphite-web syncdb --noinput
-
Launch Graphite:
$ docker run -d -P --volumes-from graphite-carbon --link graphite-db:db \ --name graphite-web graphite-web
The Graphite Carbon image exposes ports 2003, 2004, and 7002.
The Graphite Web image exposes port 80.
- Configure volumes for Graphite log directories.
- Remove MariaDB image resources.
- Configure volumes for Graphite log directories.
- Allow Graphite Carbon image customization.
- Allow Graphite Web image customization of dashboard configuration.
- Modernize images to latest RHEL7 and Graphite releases.
- Enable Carbon UDP listener by default.
- Initial release.