Skip to content

Commit 522558b

Browse files
authored
Merge branch 'master' into feat-influxdb3-cli-updates
2 parents 68fb311 + 6c88cae commit 522558b

File tree

3 files changed

+82
-74
lines changed

3 files changed

+82
-74
lines changed

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ services:
349349
- --data-dir=/var/lib/influxdb3/data
350350
- --plugin-dir=/var/lib/influxdb3/plugins
351351
environment:
352+
- INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=${INFLUXDB3_ENTERPRISE_LICENSE_EMAIL}
352353
- INFLUXDB3_AUTH_TOKEN=/run/secrets/influxdb3-enterprise-admin-token
353354
volumes:
354355
- type: bind

content/influxdb3/enterprise/admin/license.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ existing license if it's still valid.
154154
2. When starting the {{< product-name >}} server, provide the license file
155155
path using one of the following methods:
156156

157-
- Use the the [`--license-file`](/influxdb3/enterprise/reference/config-options/#license-file)
157+
- Use the [`--license-file`](/influxdb3/enterprise/reference/config-options/#license-file)
158158
option with the `influxdb3 serve` command
159159
- Set the `INFLUXDB3_ENTERPRISE_LICENSE_FILE` environment variable.
160160

@@ -225,25 +225,29 @@ services:
225225
image: influxdb:3-enterprise
226226
ports:
227227
- 8181:8181
228-
# In the following command, replace INFLUXDB3_LICENSE_EMAIL with your email address.
229-
# Alternatively, pass the `INFLUXDB3_LICENSE_EMAIL` environment variable or
228+
# In the following command, replace INFLUXDB3_ENTERPRISE_LICENSE_EMAIL with your email address.
229+
# Alternatively, pass the `INFLUXDB3_ENTERPRISE_LICENSE_EMAIL` environment variable or
230230
# store the email address in a compose CLI .env file.
231231
command:
232232
- influxdb3
233233
- serve
234234
- --node-id=node0
235235
- --cluster-id=cluster0
236236
- --object-store=file
237-
- --data-dir=/var/lib/influxdb3
237+
- --data-dir=/var/lib/influxdb3/data
238238
- --plugin-dir=/var/lib/influxdb3/plugins
239239
environment:
240-
- INFLUXDB3_LICENSE_EMAIL=${EMAIL_ADDRESS}
240+
- INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=${EMAIL_ADDRESS}
241241
volumes:
242-
- type: bind
242+
- type: bind
243+
# Path to store data on your host system
243244
source: ~/.influxdb3/data
244-
target: /var/lib/influxdb3
245-
- type: bind
245+
# Path to store data in the container
246+
target: /var/lib/influxdb3/data
247+
- type: bind
248+
# Path to store plugins on your host system
246249
source: ~/.influxdb3/plugins
250+
# Path to store plugins in the container
247251
target: /var/lib/influxdb3/plugins
248252
```
249253
{{% /code-placeholders %}}

content/shared/influxdb3-get-started/setup.md

Lines changed: 69 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ data to the local file system, mount a volume for the object store--for example,
133133
provide the following options with your `docker run` command:
134134

135135
- `--volume /path/on/host:/path/in/container`: Mounts a directory from your file system to the container
136-
- `--object-store file --data-dir /path/in/container`: Use the volume mount for object storage
136+
- `--object-store file --data-dir /path/in/container`: Uses the volume for object storage
137137

138138
{{% show-in "enterprise" %}}
139139
<!--pytest.mark.skip-->
@@ -174,66 +174,81 @@ docker run -it \
174174
175175
{{% /expand %}}
176176
{{% expand "Docker compose with a mounted file system object store" %}}
177+
Open `compose.yaml` for editing and add a `services` entry for
178+
{{% product-name %}}--for example:
177179
{{% show-in "enterprise" %}}
178-
1. Open `compose.yaml` for editing and add a `services` entry for {{% product-name %}}.
179-
--for example:
180-
181-
```yaml
182-
# compose.yaml
183-
services:
184-
influxdb3-{{< product-key >}}:
185-
container_name: influxdb3-{{< product-key >}}
186-
image: influxdb:3-{{< product-key >}}
187-
ports:
188-
- 8181:8181
189-
command:
190-
- influxdb3
191-
- serve
192-
- --node-id=node0
193-
- --cluster-id=cluster0
194-
- --object-store=file
195-
- --data-dir=/var/lib/influxdb3
196-
- --plugin-dir=/var/lib/influxdb3-plugins
197-
environment:
198-
- INFLUXDB3_LICENSE_EMAIL=EMAIL_ADDRESS
199-
```
200-
_Replace `EMAIL_ADDRESS` with your email address to bypass the email prompt
180+
```yaml
181+
# compose.yaml
182+
services:
183+
influxdb3-{{< product-key >}}:
184+
image: influxdb:3-{{< product-key >}}
185+
ports:
186+
- 8181:8181
187+
command:
188+
- influxdb3
189+
- serve
190+
- --node-id=node0
191+
- --cluster-id=cluster0
192+
- --object-store=file
193+
- --data-dir=/var/lib/influxdb3/data
194+
- --plugin-dir=/var/lib/influxdb3/plugins
195+
environment:
196+
- INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=EMAIL_ADDRESS
197+
volumes:
198+
- type: bind
199+
# Path to store data on your host system
200+
source: ~/.influxdb3/data
201+
# Path to store data in the container
202+
target: /var/lib/influxdb3/data
203+
- type: bind
204+
# Path to store plugins on your host system
205+
source: ~/.influxdb3/plugins
206+
# Path to store plugins in the container
207+
target: /var/lib/influxdb3/plugins
208+
```
209+
Replace `EMAIL_ADDRESS` with your email address to bypass the email prompt
201210
when generating a trial or at-home license. For more information, see [Manage your
202-
{{% product-name %}} license](/influxdb3/version/admin/license/)_.
211+
{{% product-name %}} license](/influxdb3/version/admin/license/).
203212
{{% /show-in %}}
204213
{{% show-in "core" %}}
205-
1. Open `compose.yaml` for editing and add a `services` entry for {{% product-name %}}--for example:
206-
207-
```yaml
208-
# compose.yaml
209-
services:
210-
influxdb3-{{< product-key >}}:
211-
container_name: influxdb3-{{< product-key >}}
212-
image: influxdb:3-{{< product-key >}}
213-
ports:
214-
- 8181:8181
215-
command:
216-
- influxdb3
217-
- serve
218-
- --node-id=node0
219-
- --object-store=file
220-
- --data-dir=/var/lib/influxdb3
221-
- --plugin-dir=/var/lib/influxdb3-plugins
222-
```
214+
```yaml
215+
# compose.yaml
216+
services:
217+
influxdb3-{{< product-key >}}:
218+
image: influxdb:3-{{< product-key >}}
219+
ports:
220+
- 8181:8181
221+
command:
222+
- influxdb3
223+
- serve
224+
- --node-id=node0
225+
- --object-store=file
226+
- --data-dir=/var/lib/influxdb3/data
227+
- --plugin-dir=/var/lib/influxdb3/plugins
228+
volumes:
229+
- type: bind
230+
# Path to store data on your host system
231+
source: ~/.influxdb3/data
232+
# Path to store data in the container
233+
target: /var/lib/influxdb3/data
234+
- type: bind
235+
# Path to store plugins on your host system
236+
source: ~/.influxdb3/plugins
237+
# Path to store plugins in the container
238+
target: /var/lib/influxdb3/plugins
239+
```
223240
{{% /show-in %}}
224241

225-
2. Use the Docker Compose CLI to start the server.
226-
227-
Optional: to make sure you have the latest version of the image before you
228-
start the server, run `docker compose pull`.
242+
Use the Docker Compose CLI to start the server--for example:
229243

230-
<!--pytest.mark.skip-->
231-
```bash
232-
docker compose pull && docker compose run influxdb3-{{< product-key >}}
233-
```
244+
<!--pytest.mark.skip-->
245+
```bash
246+
docker compose pull && docker compose up influxdb3-{{< product-key >}}
247+
```
234248

235-
InfluxDB 3 starts in a container with host port `8181` mapped to container port
236-
`8181`, the `influxdb3` server default for HTTP connections.
249+
The command pulls the latest {{% product-name %}} Docker image and starts
250+
`influxdb3` in a container with host port `8181` mapped to container port
251+
`8181`, the server default for HTTP connections.
237252

238253
> [!Tip]
239254
> #### Custom port mapping
@@ -244,18 +259,6 @@ InfluxDB 3 starts in a container with host port `8181` mapped to container port
244259
> For more information about mapping your container port to a specific host port, see the
245260
> Docker guide for [Publishing and exposing ports](https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/).
246261

247-
> [!Note]
248-
> #### Stopping an InfluxDB 3 container
249-
>
250-
> To stop a running InfluxDB 3 container, find and terminate the process or container--for example:
251-
>
252-
> <!--pytest.mark.skip-->
253-
> ```bash
254-
> docker container ls --filter "name=influxdb3"
255-
> docker kill <CONTAINER_ID>
256-
> ```
257-
>
258-
> _Currently, a bug prevents using {{< keybind all="Ctrl+c" >}} in the terminal to stop an InfluxDB 3 container._
259262
{{% /expand %}}
260263
{{% expand "S3 object storage" %}}
261264

@@ -377,7 +380,7 @@ InfluxDB 3 Enterprise licenses:
377380
>
378381
> To generate the trial or home license in Docker, bypass the email prompt.
379382
> The first time you start a new instance, provide your email address with the
380-
> `--license-email` option or the `INFLUXDB3_LICENSE_EMAIL` environment variable.
383+
> `--license-email` option or the `INFLUXDB3_ENTERPRISE_LICENSE_EMAIL` environment variable.
381384
>
382385
> _Currently, if you use Docker and enter your email address in the prompt, a bug may
383386
> prevent the container from generating the license ._

0 commit comments

Comments
 (0)