Simple graphite container with nginx based on alpine
Components included:
- Graphite
- Carbon
- Whisper
- Nginx / gunicorn
All variables are optional.
PUID
... The user ID to run the processes underPGID
... The group ID to run the processes underTZ
... Timezone for the container (e.g. Europe/Vienna)
Django backend options:
SECRET_KEY
... Secret key used by Django (default 64 character random string based on the date)GRAPHITE_ALLOWED_HOSTS
... Hosts allowed to connect to Django backend (default'*'
)GRAPHITE_DATE_FORMAT
... Short date format (default'%m/%d'
)GRAPHITE_LOG_FILE_INFO
GRAPHITE_LOG_FILE_EXCEPTION
GRAPHITE_LOG_FILE_CACHE
GRAPHITE_LOG_FILE_RENDERING
... Log file destinations (default'-'
which means logging to stdout)GRAPHITE_USE_WORKER_POOL
... Creates a pool of worker threads to which tasks can be dispatched. (deafaulttrue
)GRAPHITE_POOL_WORKERS_PER_BACKEND
... The number of worker threads that should be created per backend server. (default8
)GRAPHITE_POOL_WORKERS
... A baseline number of workers that should always be created (default1
)
Exported volumes:
/opt/graphite/storage
... Carbon database storage
Exposed ports:
80
... The web interface for Graphite2003
... Carbon plaintext protocol2004
... Carbon pickle protocol
version: "2.4"
networks:
my_network:
driver: bridge
services:
graphite:
image: egoaty/graphite
environment:
- PUID=1234
- PUID=1234
- TZ='Europe/Vienna'
networks:
my_network:
aliases:
- graphite
ports:
- 80:80
- 2003:2003
- 2004:2004
volumes:
- ./graphite/storage:/opt/graphite/storage
restart: unless-stopped