Levelrail
Skip to content

Self-host InfluxDB with Docker ​

An open-source time-series database for metrics, events, and IoT analytics.

This page describes the Levelrail template for InfluxDB (Database Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.influxdata.com/influxdb/.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
influxdbinfluxdb:2.7-alpine8086
influxdb_data -> /var/lib/influxdb2
influxdb_config -> /etc/influxdb2

Environment variables ​

ServiceVariableValue
influxdbINFLUXDB_INIT_ADMIN_TOKENGenerated at deploy
influxdbINFLUXDB_INIT_BUCKETPreset in the template
influxdbINFLUXDB_INIT_MODEPreset in the template
influxdbINFLUXDB_INIT_ORGPreset in the template
influxdbINFLUXDB_INIT_PASSWORDGenerated at deploy
influxdbINFLUXDB_INIT_USERNAMEGenerated at deploy

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy InfluxDB with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select InfluxDB. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy influxdb --name my-influxdb

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Database Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.