/docker-rpi-influxdb

Recipe to build the InfluxDB Docker image for Raspberry Pi

Primary LanguageShellMIT LicenseMIT

InfluxDB Docker image for Raspberry Pi

Build Status

About

InfluxDB time series database in the Docker container.

Upstream Links

Quick Start

  • Pull prebuilt Docker image:

     	docker pull monstrenyatko/rpi-influxdb
  • Start prebuilt image:

     	docker-compose up -d
  • Logs:

     	docker-compose logs
  • Stop/Restart:

     	docker-compose stop
     	docker-compose start
  • Start influx client application:

     	docker-compose run --rm influxdb influx <parameters>
  • Start influxdb with additional command-line parameters:

     	docker-compose run influxdb influxdb-app <parameters>
  • Configuration options:

    • Controlling the UID and/or GUI of the influxdb user. Set the INFLUXDB_UID and/or INFLUXDB_GID environment variables.

    • Database initialization script execution:

     	docker-compose run --rm influxdb influxdb-app db-init

    The script requires Environment Variables to be set. See official Docker image to find all supported official Environment Variables in Database Initialization section. Additionally, the INFLUXDB_ADMIN_PASSWORD_FILE and INFLUXDB_USER_PASSWORD_FILE variables available for automatic population of the INFLUXDB_ADMIN_PASSWORD and INFLUXDB_USER_PASSWORD variables from file.

    • Overriding the main configuration file:
     	influxdb:
     	  ...
     	  volumes:
     	    - ./my_custom-influxdb.conf:/etc/influxdb/influxdb.conf:ro

Container is already configured for automatic restart (See docker-compose.yml).

Build own image

	cd <path to sources>
	./build.sh <tag name>