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 - onlyoffice-graphite
environment: environment:
- METRICS_ENABLED=${METRICS_ENABLED:-true} - METRICS_ENABLED=${METRICS_ENABLED:-true}
- METRICS_HOST="${METRICS_HOST:-localhost}" - METRICS_HOST=${METRICS_HOST:-localhost}
- METRICS_PORT="${METRICS_PORT:-8125}" - METRICS_PORT=${METRICS_PORT:-8125}
- METRICS_PREFIX="${METRICS_PREFIX:-ds.}" - METRICS_PREFIX=${METRICS_PREFIX:-ds.}
stdin_open: true stdin_open: true
restart: always restart: always
expose:
- '2003'
ports: ports:
- '80:80' - '80:80'
expose: volumes:
- '8125' - ./graphite/statsd:/var/www/onlyoffice/documentserver/server/Metrics/config
onlyoffice-graphite: onlyoffice-graphite:
container_name: onlyoffice-graphite container_name: onlyoffice-graphite
build: image: graphiteapp/graphite-statsd
context: ../.
dockerfile: graphite.dockerfile
environment: environment:
- GRAPHITE_STATSD_HOST=${GRAPHITE_STATSD_HOST:-onlyoffice-documentserver}
- GRAPHITE_TIME_ZONE=${GRAPHITE_TIME_ZONE:-Europe/Moscow} - GRAPHITE_TIME_ZONE=${GRAPHITE_TIME_ZONE:-Europe/Moscow}
ports: ports:
- '9999:80' - '8888:80'
stdin_open: true stdin_open: true
restart: always restart: always

View file

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