fix dashboard, set ports to bind to loopback, adjust env vars for grafana

pull/3/head
lance 5 years ago
parent 5d224818b4
commit d040df953f

@ -19,11 +19,13 @@ services:
grafana: grafana:
image: grafana/grafana:6.5.0 image: grafana/grafana:6.5.0
ports: ports:
- 3000:3000 - 127.0.0.1:3000:3000
environment: environment:
GF_SECURITY_ADMIN_USER: admin GF_SECURITY_ADMIN_USER: admin
HOSTNAME: grafana
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD} GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD}
GF_SERVER_ROOT_URL: ${GRAFANA_URL}
GF_SERVER_SERVE_FROM_SUB_PATH: "true"
GF_SERVER_ENFORCE_DOMAIN: "true"
GF_ANALYTICS_REPORTING_ENABLED: "false" GF_ANALYTICS_REPORTING_ENABLED: "false"
GF_ANALYTICS_CHECK_FOR_UPDATES: "false" GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
volumes: volumes:
@ -34,7 +36,7 @@ services:
prometheus: prometheus:
image: prom/prometheus:v2.15.2 image: prom/prometheus:v2.15.2
ports: ports:
- 9090:9090 - 127.0.0.1:9090:9090
volumes: volumes:
- ./Docker/files/prometheus:/etc/prometheus - ./Docker/files/prometheus:/etc/prometheus
- prometheus:/prometheus - prometheus:/prometheus

@ -1,4 +1,4 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [
{ {