Fix docker-compose config

This commit is contained in:
Semen Bezrukov 2020-07-22 14:12:06 +03:00
parent 549dd56a9f
commit ab82275018
3 changed files with 11 additions and 18 deletions

View file

@ -1,8 +0,0 @@
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

View file

@ -8,24 +8,25 @@ services:
- onlyoffice-graphite
environment:
- METRICS_ENABLED=${METRICS_ENABLED:-true}
- METRICS_HOST="${METRICS_HOST:-localhost}"
- METRICS_PORT="${METRICS_PORT:-8125}"
- METRICS_PREFIX="${METRICS_PREFIX:-ds.}"
- METRICS_HOST=${METRICS_HOST:-localhost}
- METRICS_PORT=${METRICS_PORT:-8125}
- METRICS_PREFIX=${METRICS_PREFIX:-ds.}
stdin_open: true
restart: always
expose:
- '2003'
ports:
- '80:80'
expose:
- '8125'
volumes:
- ./graphite/statsd:/var/www/onlyoffice/documentserver/server/Metrics/config
onlyoffice-graphite:
container_name: onlyoffice-graphite
build:
context: ../.
dockerfile: graphite.dockerfile
image: graphiteapp/graphite-statsd
environment:
- GRAPHITE_STATSD_HOST=${GRAPHITE_STATSD_HOST:-onlyoffice-documentserver}
- GRAPHITE_TIME_ZONE=${GRAPHITE_TIME_ZONE:-Europe/Moscow}
ports:
- '9999:80'
- '8888:80'
stdin_open: true
restart: always

View file

@ -1,5 +1,5 @@
{
"graphiteHost": "127.0.0.1",
"graphiteHost": "onlyoffice-graphite",
"graphitePort": 2003,
"port": 8125,
"flushInterval": 3000,