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
We **don't** recommend using initialization options for InfluxDB v1 production scenarios, but they're useful when running standalone instances for testing.
582
+
579
583
The InfluxDB Docker Hub image lets you set initialization options when creating an InfluxDB v1 container.
580
584
581
585
The database initialization script is only called when running `influxd`; it isn't executed by any other program.
582
586
583
-
**WARNING**: We **don't** recommend using these options for production scenarios, but they're useful when running standalone instances for testing.
584
-
585
587
### Environment variables
586
588
587
589
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.
Copy file name to clipboardExpand all lines: influxdb/variant-meta.md
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
## `%%IMAGE%%:meta`
1
+
`%%IMAGE%%:meta`
2
+
----------------
2
3
3
4
*This image requires a valid license key from InfluxData.* Please visit our [products page](https://www.influxdata.com/products/) to learn more.
4
5
@@ -11,7 +12,7 @@ This image contains the enterprise meta node package for clustering. It is meant
11
12
The license key can be specified using either an environment variable or by overriding the configuration file. If you specify the license key directly, the container needs to be able to access the InfluxData portal.
12
13
13
14
```console
14
-
$ docker run -p 8089:8089 -p 8091:8091 \
15
+
docker run -p 8089:8089 -p 8091:8091 \
15
16
-e INFLUXDB_ENTERPRISE_LICENSE_KEY=<license-key>
16
17
%%IMAGE%%:meta
17
18
```
@@ -23,21 +24,21 @@ The examples below will use docker's built-in networking capability. If you use
23
24
First, create a docker network:
24
25
25
26
```console
26
-
$ docker network create influxdb
27
+
docker network create influxdb
27
28
```
28
29
29
30
Start three meta nodes. This is the suggested number of meta nodes. We do not recommend running more or less. If you choose to run more or less, be sure that the number of meta nodes is odd. The hostname must be set on each container to the address that will be used to access the meta node. When using docker networks, the hostname should be made the same as the name of the container.
30
31
31
32
```console
32
-
$ docker run -d --name=influxdb-meta-0 --network=influxdb \
33
+
docker run -d --name=influxdb-meta-0 --network=influxdb \
Start the data nodes using `%%IMAGE%%:data` with similar command line arguments to the meta nodes. You can start as many data nodes as are allowed by your license.
69
70
70
71
```console
71
-
$ docker run -d --name=influxdb-data-0 --network=influxdb \
72
+
docker run -d --name=influxdb-data-0 --network=influxdb \
You can add `-p 8086:8086` to expose the http port to the host machine. After starting the container, choose one of the meta nodes and add the data node to it.
78
79
79
80
```console
80
-
$ docker exec influxdb-meta-0 \
81
+
docker exec influxdb-meta-0 \
81
82
influxd-ctl add-data influxdb-data-0:8088
82
83
```
83
84
@@ -94,13 +95,13 @@ InfluxDB Meta can be either configured from a config file or using environment v
94
95
Generate the default configuration file:
95
96
96
97
```console
97
-
$ docker run --rm %%IMAGE%%:meta influxd-meta config > influxdb-meta.conf
98
+
docker run --rm %%IMAGE%%:meta influxd-meta config > influxdb-meta.conf
98
99
```
99
100
100
101
Modify the default configuration, which will now be available under `$PWD`. Then start the InfluxDB Meta container.
0 commit comments