Update Explorer docker run commands with correct mode specification (#6114)

* updated the docker commands for explorer

* updated mode examples for explorer docker run
pull/6117/head
Scott Anderson 2025-05-30 12:12:43 -05:00 committed by GitHub
parent b0823b6323
commit b32c482ab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 11 deletions

View File

@ -28,8 +28,8 @@ docker run --detach \
--name influxdb3-explorer \ --name influxdb3-explorer \
--publish 8888:80 \ --publish 8888:80 \
--publish 8889:8888 \ --publish 8889:8888 \
--env MODE=admin \ quay.io/influxdb/influxdb3-explorer:latest \
quay.io/influxdb/influxdb3-explorer:latest --mode=admin
``` ```
<a class="btn" href="/influxdb3/explorer/install/">Install and run InfluxDB 3 Explorer</a> <a class="btn" href="/influxdb3/explorer/install/">Install and run InfluxDB 3 Explorer</a>

View File

@ -83,8 +83,8 @@ Use [Docker](https://docker.com) to install and run **InfluxDB 3 Explorer**.
--volume $(pwd)/config:/app-root/config:ro \ --volume $(pwd)/config:/app-root/config:ro \
--volume $(pwd)/db:/db:rw \ --volume $(pwd)/db:/db:rw \
--volume $(pwd)/ssl:/etc/nginx/ssl:ro \ --volume $(pwd)/ssl:/etc/nginx/ssl:ro \
--env MODE=admin \ quay.io/influxdb/influxdb3-explorer:latest \
quay.io/influxdb/influxdb3-explorer:latest --mode=admin
``` ```
5. **Access the {{% product-name %}} user interface (UI) at <http://localhost:8888>**. 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.
- **Query mode (default):** Read-only UI and query interface - **Query mode (default):** Read-only UI and query interface
- **Admin mode:** Full UI and API access for administrators - **Admin mode:** Full UI and API access for administrators
You can control the operational mode using the `MODE` environment variable. You can control the operational mode using the `--mode=` option in your
`docker run` command (after the image name).
### Run in query mode {note="(default)"} ### Run in query mode {note="(default)"}
```sh ```sh
docker run -d \ docker run \
--env MODE=query \
... ...
--mode=query
``` ```
### Run in admin mode ### Run in admin mode
```sh ```sh
docker run -d \ docker run \
--env MODE=admin \
... ...
--mode=admin
``` ```
If `MODE` is not set, the container defaults to query mode. If `--mode` is not set, the container defaults to query mode.
--- ---
## Environment Variables ## Environment Variables
Use the following environment variables to customize {{% product-name %}} settings
in your container.
| Variable | Description | Default | | Variable | Description | Default |
|----------------|--------------------------------------------------|----------------------| |----------------|--------------------------------------------------|----------------------|
| `DATABASE_URL` | Path to SQLite DB inside container | `/db/sqlite.db` | | `DATABASE_URL` | Path to SQLite DB inside container | `/db/sqlite.db` |
| `MODE` | Set to `admin` or `query` | `query` |
--- ---