InfluxDB

From Open Source Controls Wiki
Revision as of 12:00, 18 September 2022 by Rhg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
docker run -d -p 8086:8086 --name influxdb \
      -v influx_data:/var/lib/influxdb2 \
      -v influx_config:/etc/influxdb2 \
      -e DOCKER_INFLUXDB_INIT_MODE=setup \
      -e DOCKER_INFLUXDB_INIT_USERNAME=admin \
      -e DOCKER_INFLUXDB_INIT_PASSWORD=Your_Password \
      -e DOCKER_INFLUXDB_INIT_ORG=heatweb \
      -e DOCKER_INFLUXDB_INIT_BUCKET=heatweb \
      -e DOCKER_INFLUXDB_INIT_RETENTION=1w \
      influxdb:2.0

docker exec influxdb influx auth list \
      --user admin \
      --hide-headers | cut -f 3

Influxsetup.png