Here are some example snippets to help you get started creating and running a container.
docker
docker run -d \
--name=influx-graf \
-e PUID=1000 \
-e PGID=1000 \
-p 8086:8086 \ #influxdb HTTP API port
-p 3000:3000 \ #grafana webinterface
-p 8083:8083 \ #chronograf webinterface
-v path to data:/var/lib/influxdb \ #makes InfluxDB data and db's persistent
-v path to data:/var/lib/grafana \ #makes Grafana data and db's persistent
--restart unless-stopped \
ghcr.io/frepke/influxdb-grafana
docker-compose
Compatible with docker-compose v3 schemas.
---
version: "3"
services:
influx-graf:
image: ghcr.io/frepke/influxdb-grafana
container_name: influx-graf:
environment:
- PUID=1000
- PGID=1000
volumes:
- path to data:/var/lib/influxdb \ #makes InfluxDB data and db's persistent
- path to data:/var/lib/grafana \ #makes Grafana data and db's persistent
ports:
- 8086:8086 \ #influxdb HTTP API port
- 3000:3000 \ #grafana webinterface
restart: unless-stopped
Grafana
username: admin
password: admin