Skip to content

Commit e4c57f9

Browse files
authored
Revert "docs(influxdb3): Update token documentation for Docker Compose and CI…" (#6757)
This reverts commit 5c786ac.
1 parent 5c786ac commit e4c57f9

File tree

2 files changed

+2
-88
lines changed

2 files changed

+2
-88
lines changed

content/shared/influxdb3-admin/tokens/admin/preconfigured.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,13 @@ object with the following fields:
6565

6666
- **token**: The raw token string (must begin with `apiv3_`)
6767
- **name**: The token name (default is `_admin`)
68-
- **description**: <em class="op50">(Optional)</em> A description of the token
69-
- **expiry_millis**: <em class="op50">(Optional)</em> Token expiration time as a millisecond Unix timestamp
68+
- **expiry_millis**: <em class="op50">(Optional)</em> Token expiration time as a
69+
millisecond Unix timestamp
7070

7171
```json
7272
{
7373
"token": "apiv3_0XXXX-xxxXxXxxxXX_OxxxX...",
7474
"name": "_admin",
75-
"description": "Admin token for InfluxDB 3",
7675
"expiry_millis": 1756400061529
7776
}
7877
```

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

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -310,91 +310,6 @@ The command pulls the latest {{% product-name %}} Docker image and starts
310310
> For more information about mapping your container port to a specific host port, see the
311311
> Docker guide for [Publishing and exposing ports](https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/).
312312

313-
{{% /expand %}}
314-
{{% expand "Docker Compose with preconfigured admin tokens" %}}
315-
316-
For automated deployments or CI/CD pipelines, you can start {{% product-name %}} with a preconfigured admin token file that contains your admin token in JSON format.
317-
318-
### Create an admin token file
319-
320-
Create a JSON file with your admin token:
321-
322-
```json
323-
{
324-
"token": "apiv3_your_token_here",
325-
"name": "admin",
326-
"description": "Admin token for automated deployment"
327-
}
328-
```
329-
330-
For security, restrict file permissions:
331-
332-
```bash
333-
chmod 600 path/to/admin-token.json
334-
```
335-
336-
### Use Docker Compose with secrets
337-
338-
For secure token management in Docker Compose, use Docker secrets instead of bind mounts:
339-
340-
```yaml
341-
# compose.yaml
342-
services:
343-
influxdb3-{{< product-key >}}:
344-
image: influxdb:3-{{< product-key >}}
345-
ports:
346-
- 8181:8181
347-
command:
348-
- influxdb3
349-
- serve
350-
- --node-id=node0
351-
{{% show-in "enterprise" %}}--cluster-id=cluster0{{% /show-in %}}
352-
- --object-store=file
353-
- --data-dir=/var/lib/influxdb3/data
354-
- --admin-token-file=/run/secrets/admin-token
355-
{{% show-in "enterprise" %}}environment:
356-
- INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=your-email@example.com{{% /show-in %}}
357-
secrets:
358-
- admin-token
359-
volumes:
360-
- type: bind
361-
source: ~/.influxdb3/data
362-
target: /var/lib/influxdb3/data
363-
364-
secrets:
365-
admin-token:
366-
file: path/to/admin-token.json
367-
```
368-
369-
Start the service:
370-
371-
```bash
372-
docker compose up -d influxdb3-{{< product-key >}}
373-
```
374-
375-
> [!Important]
376-
> #### Docker secrets security benefits
377-
>
378-
> Docker secrets provide better security than bind mounts:
379-
> - Secrets are stored encrypted in memory
380-
> - Not visible in `docker inspect` output
381-
> - Not exposed in environment variables or logs
382-
> - Follow Docker and Kubernetes best practices
383-
384-
### CI/CD setup
385-
386-
For automated environments, create the admin token file from environment variables:
387-
388-
```bash
389-
# Create token file from environment
390-
echo "{\"token\": \"$INFLUXDB3_ADMIN_TOKEN\", \"name\": \"admin\", \"description\": \"CI/CD admin token\"}" > admin-token.json
391-
chmod 600 admin-token.json
392-
```
393-
394-
Then use the file in your Docker Compose configuration as shown above.
395-
396-
For more information about preconfigured admin tokens, see [Use a preconfigured admin token](/influxdb3/version/admin/tokens/admin/preconfigured/).
397-
398313
{{% /expand %}}
399314
{{% expand "S3 object storage" %}}
400315

0 commit comments

Comments
 (0)