Skip to main content
16-Pearl
January 22, 2019

Installing InfluxDB and Chronograf in Docker

  • January 22, 2019
  • 1 reply
  • 13591 views

Installing an Open Source Time Series Platform


For testing InfluxDB and its graphical user interface, Chronograf I'm using Docker images for easy deployment. For this post I assume you have worked with Docker before.

 

In this setup, InfluxDB and Chronograf will share an internal docker network to exchange data.

 

  • InfluxDB can be accessed e.g. by ThingWorx via its exposed port 8086.
  • Chronograf can be accessed to administrative purposes via its port 8888.

The following commands can be used to create a InfluxDB environment.

 

Pull images

 

sudo docker pull influxdb:latest
sudo docker pull chronograf:latest

 

Create a virtual network

 

sudo docker network create influxdb

 

Start the containers

 

sudo docker run -d --name=influxdb -p 8086:8086 --net=influxdb --restart=always influxdb
sudo docker run -d --name=chronograf -p 8888:8888 --net=influxdb --restart=always chronograf --influxdb-url=http://influxdb:8086

 

 

InfluxDB should now be reachable and will also restart automatically when Docker (or the Operating System) are restarted.

1 reply

16-Pearl
May 22, 2019

Docker Compose flavor procedure can be found here : https://www.influxdata.com/blog/tips-for-running-the-tick-stack-using-docker/