InfluxDB time series database in the Docker
container.
- Docker Registry @monstrenyatko/rpi-influxdb
- GitHub @monstrenyatko/docker-rpi-influxdb
- Official Docker Registry @influxdb
-
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/orGUI
of theinfluxdb
user. Set theINFLUXDB_UID
and/orINFLUXDB_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 officialEnvironment Variables
inDatabase Initialization
section. Additionally, theINFLUXDB_ADMIN_PASSWORD_FILE
andINFLUXDB_USER_PASSWORD_FILE
variables available for automatic population of theINFLUXDB_ADMIN_PASSWORD
andINFLUXDB_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
).
cd <path to sources>
./build.sh <tag name>