This project provides resources for deploying InfluxDB in Docker.
RHEL 7.1
RHEL7 Subscription
Simply run:
$ docker build -t influxdb .
Simply run:
$ docker run -d influxdb
The InfluxDB image exposes ports 8083 and 8086.
By default, no authentication is configured on this image.
To add authentication, you'll need to do the following:
-
Modify "influxdb.conf" to contain:
[http] auth-enabled = true
-
Modify the dockerfile to run the commands to add users. For example:
RUN bash -c '/opt/influxdb/influxd -config /etc/opt/influxdb/influxdb.conf &' &&\ until curl -G http://localhost:8086/query --data-urlencode "q=CREATE USER root WITH PASSWORD secret WITH ALL PRIVILEGES"; do sleep 1; done
-
Rebuild the image.
This image defines an entrypoint which starts the influxdb service.