grafana
This commit is contained in:
@@ -1,41 +1,26 @@
|
||||
version: '2'
|
||||
services:
|
||||
influxdb:
|
||||
image: influxdb:latest
|
||||
ports:
|
||||
- '8086:8086'
|
||||
container_name: influxdb
|
||||
image: influxdb:2.0
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- influxdb-storage:/var/lib/influxdb
|
||||
environment:
|
||||
- INFLUXDB_DB=db0
|
||||
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
|
||||
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
|
||||
chronograf:
|
||||
image: chronograf:latest
|
||||
- ./influxdb:/var/lib/influxdb2
|
||||
ports:
|
||||
- '8888:8888'
|
||||
volumes:
|
||||
- chronograf-storage:/var/lib/chronograf
|
||||
depends_on:
|
||||
- influxdb
|
||||
environment:
|
||||
- INFLUXDB_URL=http://influxdb:8086
|
||||
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
|
||||
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
ports:
|
||||
- '3003:3000'
|
||||
volumes:
|
||||
- grafana-storage:/var/lib/grafana
|
||||
- ./grafana-provisioning:/etc/grafana/provisioning
|
||||
depends_on:
|
||||
- influxdb
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
|
||||
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
|
||||
volumes:
|
||||
influxdb-storage:
|
||||
chronograf-storage:
|
||||
grafana-storage:
|
||||
- 8086:8086
|
||||
|
||||
grafana:
|
||||
container_name: grafana
|
||||
image: grafana/grafana:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./grafana:/var/lib/grafana # NOTE: must run "chown -R 472:472 /volume1/docker/grafana"
|
||||
depends_on:
|
||||
- influxdb
|
||||
ports:
|
||||
- 3003:3000
|
||||
environment:
|
||||
# for embedding in HA
|
||||
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
||||
- GF_AUTH_ANONYMOUS_ENABLED=true
|
||||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
||||
- GF_SECURITY_ALLOW_EMBEDDING=true
|
||||
|
||||
Reference in New Issue
Block a user