From 24df78841f87388bc95dbffcb2f3d6b05f85165d Mon Sep 17 00:00:00 2001 From: Santo Leto Date: Fri, 8 Nov 2024 01:44:33 +0000 Subject: [PATCH 1/5] fix indentation in numbered list --- .../influxdb/v2/install/use-docker-compose.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/content/influxdb/v2/install/use-docker-compose.md b/content/influxdb/v2/install/use-docker-compose.md index 17cc0fccd..6a502bfaa 100644 --- a/content/influxdb/v2/install/use-docker-compose.md +++ b/content/influxdb/v2/install/use-docker-compose.md @@ -54,9 +54,9 @@ Follow steps to set up and run InfluxDB using Docker Compose and `secrets`: environment: DOCKER_INFLUXDB_INIT_MODE: setup DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username - DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password + DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token - DOCKER_INFLUXDB_INIT_ORG: docs + DOCKER_INFLUXDB_INIT_ORG: docs DOCKER_INFLUXDB_INIT_BUCKET: home secrets: - influxdb2-admin-username @@ -114,15 +114,15 @@ Follow steps to set up and run InfluxDB using Docker Compose and `secrets`: At runtime, the `influxdb` image: 1. Mounts `secrets` files from your host filesystem to `/run/secrets/` -in the container. +in the container. 2. Assigns the environment variables to the specified files--for example: - ```yaml - environment: - DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username - DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token - ``` + ```yaml + environment: + DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username + DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password + DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token + ``` 3. Retrieves the secrets from the mounted files and runs setup. 4. Starts InfluxDB. From 6046706e0343e1fcf3e631b80d1f43c6f5ca0d2a Mon Sep 17 00:00:00 2001 From: Santo Leto Date: Fri, 8 Nov 2024 01:56:12 +0000 Subject: [PATCH 2/5] use a warning frame --- content/influxdb/v2/install/use-docker-compose.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/influxdb/v2/install/use-docker-compose.md b/content/influxdb/v2/install/use-docker-compose.md index 6a502bfaa..39a0d4360 100644 --- a/content/influxdb/v2/install/use-docker-compose.md +++ b/content/influxdb/v2/install/use-docker-compose.md @@ -133,9 +133,13 @@ If successful, InfluxDB initializes the user, password, organization, bucket, and _[Operator token](/influxdb/v2/admin/tokens/#operator-token)_, and then logs to stdout. -_Although Docker prevents inadvertently exposing secrets (for example, in +{{% warn %}} + +Although Docker prevents inadvertently exposing secrets (for example, in `docker inspect` output), a -user that has access to the running container's filesystem can view the secrets._ +user that has access to the running container's filesystem can view the secrets. + +{{% /warn %}} ### Run InfluxDB CLI commands in a container From 29d55f94ad554728817849ecbcec02766b6b6248 Mon Sep 17 00:00:00 2001 From: Santo Leto Date: Fri, 8 Nov 2024 02:01:12 +0000 Subject: [PATCH 3/5] mention the UI (for new users who run Influx for the first time) --- content/influxdb/v2/install/use-docker-compose.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/influxdb/v2/install/use-docker-compose.md b/content/influxdb/v2/install/use-docker-compose.md index 39a0d4360..3c9c03a75 100644 --- a/content/influxdb/v2/install/use-docker-compose.md +++ b/content/influxdb/v2/install/use-docker-compose.md @@ -131,7 +131,7 @@ in the container. If successful, InfluxDB initializes the user, password, organization, bucket, and _[Operator token](/influxdb/v2/admin/tokens/#operator-token)_, and then -logs to stdout. +logs to stdout. You can view the InfluxDB UI at . {{% warn %}} From 3ef655c2c75f1a201245abf4e28f7ed95ae2198f Mon Sep 17 00:00:00 2001 From: Santo Leto Date: Fri, 8 Nov 2024 02:32:46 +0000 Subject: [PATCH 4/5] remove non-existing link (could not find it anywhere) --- content/influxdb/v2/install/use-docker-compose.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/influxdb/v2/install/use-docker-compose.md b/content/influxdb/v2/install/use-docker-compose.md index 3c9c03a75..982d26203 100644 --- a/content/influxdb/v2/install/use-docker-compose.md +++ b/content/influxdb/v2/install/use-docker-compose.md @@ -144,8 +144,8 @@ user that has access to the running container's filesystem can view the secrets. ### Run InfluxDB CLI commands in a container After you start a container using the `influxdb` Docker Hub image, you can -[use `docker exec` with the `influx` and `influxd` -CLIs](/influxdb/v2/install/#run-influxdb-cli-commands-in-a-container) inside the +use `docker exec` with the `influx` and `influxd` +CLIs inside the container. ### Manage files in mounted volumes From 7dc5c11d17c97d251a2c8ffe6c53feeda81f3b4a Mon Sep 17 00:00:00 2001 From: Santo Leto Date: Fri, 8 Nov 2024 03:07:15 +0000 Subject: [PATCH 5/5] adds correct link --- content/influxdb/v2/install/use-docker-compose.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/influxdb/v2/install/use-docker-compose.md b/content/influxdb/v2/install/use-docker-compose.md index 982d26203..0bc1b9de3 100644 --- a/content/influxdb/v2/install/use-docker-compose.md +++ b/content/influxdb/v2/install/use-docker-compose.md @@ -144,8 +144,8 @@ user that has access to the running container's filesystem can view the secrets. ### Run InfluxDB CLI commands in a container After you start a container using the `influxdb` Docker Hub image, you can -use `docker exec` with the `influx` and `influxd` -CLIs inside the +[use `docker exec` with the `influx` and `influxd` +CLIs](/influxdb/v2/install/?t=Docker#run-influxdb-cli-commands-in-a-container) inside the container. ### Manage files in mounted volumes