Skip to content

Commit 80c9604

Browse files
committed
Updates to InfluxDB Core section
1 parent e6eb2b4 commit 80c9604

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

influxdb/content.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,38 @@ To check the server health:
3232
```bash
3333
curl localhost:8086/health
3434
```
35+
3536
## Start InfluxDB 3 Enterprise
3637

37-
InfluxDB 3 Enterprise supports clustered deployments and advanced features. To start a local standalone Enterprise container for testing:
38+
InfluxDB 3 Enterprise supports clustered deployments and advanced features. To start a local standalone Enterprise container for testing, make sure to provide your license key as an environment variable and include required flags:
3839

3940
```bash
40-
docker run -d --name influxdb3-enterprise -p 8086:8086 influxdb:enterprise
41+
docker run -d --name influxdb3-enterprise -p 8086:8086 \
42+
-v $PWD/plugins:/plugins \
43+
-v $PWD/data:/var/lib/influxdb3 \
44+
-e INFLUX_LICENSE_KEY="<your_license_key>" \
45+
influxdb:enterprise serve \
46+
--cluster-id cluster1 \
47+
--node-id node1 \
48+
--plugin-dir /plugins \
49+
--object-store file \
50+
--data-dir /var/lib/influxdb3
4151
```
4252

43-
Them, generate a token and create a database:
53+
Them, generate an admin token:
54+
55+
```bash
56+
docker exec -it influxdb3-enterprise influxdb3 create token --admin
57+
```
58+
Use the token from the output to create a database
4459

4560
```bash
46-
docker exec -it influxdb3-enterprise influxdb3 generate token --admin
4761
docker exec -it influxdb3-enterprise influxdb3 create database enterprise_db --token <your_admin_token>
4862
```
4963

5064
## Mount data to persist across restarts
5165

52-
To persist the `/var/lib/influxdb3` directory, use a volume mount:
66+
To persist the `/var/lib/influxdb3` directory in **InfluxDB 3 Core**, use a Docker volume:
5367

5468
```bash
5569
docker run -d --name influxdb3-core \

0 commit comments

Comments
 (0)