Add graphite docker files

This commit is contained in:
Semen Bezrukov 2020-07-22 10:00:26 +03:00
parent 22bf46abec
commit 63fc814d08
2 changed files with 39 additions and 0 deletions

8
graphite.dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM graphiteapp/graphite-statsd AS onlyoffice-graphite
LABEL maintainer Ascensio System SIA <support@onlyoffice.com>
RUN rm -rf /etc/service/statsd \
&& sed 's|\#\?\(DASHBOARD_REQUIRE_AUTHENTICATION = \).*|\1True|g' \
-i /opt/graphite/webapp/graphite/local_settings.py \
&& sed '26s|\(retentions = \).*|\160s:90d|g' \
-i /opt/graphite/conf/storage-schemas.conf

31
tests/graphite.yaml Normal file
View file

@ -0,0 +1,31 @@
version: '2.1'
services:
onlyoffice-documentserver:
container_name: onlyoffice-documentserver
build:
context: ../.
depends_on:
- onlyoffice-graphite
environment:
- METRICS_ENABLED=${METRICS_ENABLED:-true}
- METRICS_HOST="${METRICS_HOST:-localhost}"
- METRICS_PORT="${METRICS_PORT:-8125}"
- METRICS_PREFIX="${METRICS_PREFIX:-ds.}"
stdin_open: true
restart: always
ports:
- '80:80'
expose:
- '8125'
onlyoffice-graphite:
container_name: onlyoffice-graphite
build:
context: ../.
dockerfile: graphite.dockerfile
environment:
- GRAPHITE_TIME_ZONE=${GRAPHITE_TIME_ZONE:-Europe/Moscow}
ports:
- '9999:80'
stdin_open: true
restart: always