You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: influxdb/content.md
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -573,24 +573,26 @@ Or run the influx client in a separate container:
573
573
docker run --rm --link=influxdb -it %%IMAGE%%:1.8 influx -host influxdb
574
574
```
575
575
576
-
Database Initialization
577
-
-----------------------
576
+
InfluxDB v1 database initialization
577
+
-----------------------------------
578
578
579
-
The InfluxDB image contains some extra functionality for initializing a database. These options are not suggested for production, but are quite useful when running standalone instances for testing.
579
+
The InfluxDB Docker Hub image lets you set initialization options when creating an InfluxDB v1 container.
580
580
581
-
The database initialization script will only be called when running `influxd`. It will not be executed when running any other program.
581
+
**WARNING**: We **don't** recommend using these options for production scenarios, but they're useful when running standalone instances for testing.
582
582
583
-
### Environment Variables
583
+
The database initialization script is only called when running `influxd`.
584
584
585
-
The InfluxDB image uses several environment variables to automatically configure certain parts of the server. They may significantly aid you in using this image.
585
+
### Environment variables
586
+
587
+
During the InfluxDB v1 set up process, the InfluxDB image uses environment variables to automatically configure some server options. You can override the following environment variables to customize set up options.
586
588
587
589
#### INFLUXDB_DB
588
590
589
591
Automatically initializes a database with the name of this environment variable.
590
592
591
593
#### INFLUXDB_HTTP_AUTH_ENABLED
592
594
593
-
Enables authentication. Either this must be set or `auth-enabled = true` must be set within the configuration file for any authenticationrelated options below to work.
595
+
Enables authentication. Either this must be set or `auth-enabled = true` must be set within the configuration file for any authentication-related options below to work.
594
596
595
597
#### INFLUXDB_ADMIN_USER
596
598
@@ -634,11 +636,13 @@ To manually initialize the database and exit, the `/init-influxdb.sh` script can
The above would create the database `db0`, create an admin user with the password `supersecretpassword`, then create the `telegraf` user with your telegraf's secret password. It would then exit and leave behind any files it created in the volume that you mounted.
0 commit comments