27 lines
661 B
YAML
27 lines
661 B
YAML
services:
|
|
influxdb:
|
|
container_name: influxdb
|
|
image: influxdb:2.0
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./influxdb:/var/lib/influxdb2
|
|
ports:
|
|
- 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
|