A docker container to run InfluxDB and Grafana with persistence
5M+
This is a Docker image based on the awesome Docker Image with Telegraf (StatsD), InfluxDB and Grafana from Samuele Bistoletti.
The main point of difference with this image is:
The main purpose of this image is to be used to show data from a Home Assistant installation. For more information on how to do that, please see my website about how I use this container.
| Description | Value |
|---|---|
| InfluxDB | 1.8.3 |
| ChronoGraf | 1.8.7 |
| Grafana | 7.2.1 |
To start the container with persistence you can use the following:
docker run -d \
--name docker-influxdb-grafana \
-p 3003:3003 \
-p 3004:8083 \
-p 8086:8086 \
-v /path/for/influxdb:/var/lib/influxdb \
-v /path/for/grafana:/var/lib/grafana \
philhawthorne/docker-influxdb-grafana:latest
To stop the container launch:
docker stop docker-influxdb-grafana
To start the container again launch:
docker start docker-influxdb-grafana
Host Container Service
3003 3003 grafana
3004 8083 chronograf
8086 8086 influxdb
docker exec -it <CONTAINER_ID> bash
Username: root
Password: root
Add data sourcename for the source and flag it as DefaultInfluxDB as typedirect as accessAdd without altering other fieldsBasic auth and credentials must be left unflagged. Proxy is not required.
Now you are ready to add your first dashboard and launch some queries on a database.
Home Assistant allows services to be embedded using the panel_iframe feature.
As of late 2020, new versions of popular browsers (including Chrome and Firefox) are enforcing cookies set without HTTPs must originate from the same domain/host. This means if you have Home Assistant and Grafana running on different IP addresses/hosts in your local network, you must use HTTPs with this container. If you don't, you are unable to login to Grafana when accessing Grafana from a panel_iframe.
You can still access Grafana without enabling HTTPs by accessing the host IP/name directly in your browser (ie not in an iFrame).
Username: root
Password: root
Port: 8086
influx to open InfluxDB Shell (CLI)Content type
Image
Digest
Size
241.6 MB
Last updated
almost 6 years ago
docker pull philhawthorne/docker-influxdb-grafana