Skip to content

Commit b32c482

Browse files
authored
Update Explorer docker run commands with correct mode specification (#6114)
* updated the docker commands for explorer * updated mode examples for explorer docker run
1 parent b0823b6 commit b32c482

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

content/influxdb3/explorer/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ docker run --detach \
2828
--name influxdb3-explorer \
2929
--publish 8888:80 \
3030
--publish 8889:8888 \
31-
--env MODE=admin \
32-
quay.io/influxdb/influxdb3-explorer:latest
31+
quay.io/influxdb/influxdb3-explorer:latest \
32+
--mode=admin
3333
```
3434

3535
<a class="btn" href="/influxdb3/explorer/install/">Install and run InfluxDB 3 Explorer</a>

content/influxdb3/explorer/install.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Use [Docker](https://docker.com) to install and run **InfluxDB 3 Explorer**.
8383
--volume $(pwd)/config:/app-root/config:ro \
8484
--volume $(pwd)/db:/db:rw \
8585
--volume $(pwd)/ssl:/etc/nginx/ssl:ro \
86-
--env MODE=admin \
87-
quay.io/influxdb/influxdb3-explorer:latest
86+
quay.io/influxdb/influxdb3-explorer:latest \
87+
--mode=admin
8888
```
8989

9090
5. **Access the {{% product-name %}} user interface (UI) at <http://localhost:8888>**.
@@ -163,34 +163,37 @@ These settings will be used as defaults when the container starts.
163163
- **Query mode (default):** Read-only UI and query interface
164164
- **Admin mode:** Full UI and API access for administrators
165165

166-
You can control the operational mode using the `MODE` environment variable.
166+
You can control the operational mode using the `--mode=` option in your
167+
`docker run` command (after the image name).
167168

168169
### Run in query mode {note="(default)"}
169170

170171
```sh
171-
docker run -d \
172-
--env MODE=query \
172+
docker run \
173173
...
174+
--mode=query
174175
```
175176

176177
### Run in admin mode
177178

178179
```sh
179-
docker run -d \
180-
--env MODE=admin \
180+
docker run \
181181
...
182+
--mode=admin
182183
```
183184

184-
If `MODE` is not set, the container defaults to query mode.
185+
If `--mode` is not set, the container defaults to query mode.
185186

186187
---
187188

188189
## Environment Variables
189190

191+
Use the following environment variables to customize {{% product-name %}} settings
192+
in your container.
193+
190194
| Variable | Description | Default |
191195
|----------------|--------------------------------------------------|----------------------|
192196
| `DATABASE_URL` | Path to SQLite DB inside container | `/db/sqlite.db` |
193-
| `MODE` | Set to `admin` or `query` | `query` |
194197

195198
---
196199

0 commit comments

Comments
 (0)