Fix docker-compose config
This commit is contained in:
parent
549dd56a9f
commit
ab82275018
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"graphiteHost": "127.0.0.1",
|
||||
"graphiteHost": "onlyoffice-graphite",
|
||||
"graphitePort": 2003,
|
||||
"port": 8125,
|
||||
"flushInterval": 3000,
|
||||
|
|
Loading…
Reference in a new issue