Set up InfluxDB 3 Core

Prerequisites

To get started, you’ll need:

  • InfluxDB 3 Core: Install and verify the latest version on your system.
  • If you want to persist data, have access to one of the following:
    • A directory on your local disk where you can persist data (used by examples in this guide)
    • S3-compatible object store and credentials

Quick-Start Mode (Development)

For development, testing, and home use, you can start InfluxDB 3 Core without any arguments. The system automatically generates required configuration values based on your system’s hostname:

influxdb3

When you run influxdb3 without arguments, the following values are auto-generated:

  • node-id: {hostname}-node (or primary-node if hostname is unavailable)

  • object-store: file

  • data-dir: ~/.influxdb

The system displays warning messages showing the auto-generated identifiers:

Using auto-generated node id: mylaptop-node. For production deployments, explicitly set --node-id

When to use quick-start mode

Quick-start mode is designed for development, testing, and home lab environments where simplicity is prioritized over explicit configuration.

For production deployments, use explicit configuration values with the influxdb3 serve command as shown in the Start InfluxDB section below.

Quick-start mode listens on all network interfaces. Before you start the server on a network that others can reach, see Create your admin token before you expose the server.

Configuration precedence: Environment variables override auto-generated defaults. For example, if you set INFLUXDB3_NODE_ID=my-node, the system uses my-node instead of generating {hostname}-node.

Start InfluxDB

Use the influxdb3 serve command to start InfluxDB 3 Core. Provide the following:

  • --node-id: A string identifier that distinguishes individual server instances. This forms the final part of the storage path: <CONFIGURED_PATH>/<NODE_ID>.

  • --object-store: Specifies the type of object store to use. InfluxDB supports the following:

    • file: local file system
    • memory: in memory (no object persistence)
    • memory-throttled: like memory but with latency and throughput that somewhat resembles a cloud-based object store
    • s3: AWS S3 and S3-compatible services like Ceph or Minio
    • google: Google Cloud Storage
    • azure: Azure Blob Storage
  • Other object store parameters depending on the selected object-store type. For example, if you use s3, you must provide the bucket name and credentials.

  • (Optional) --http-bind: The address and port for the HTTP API (default is 0.0.0.0:8181, which listens on all network interfaces). To accept only local connections until you create your first admin token, specify 127.0.0.1:8181 when running directly on your machine. With Docker, keep the server bound to 0.0.0.0:8181 inside the container and publish the port on the host loopback address as described below.

Create your admin token before you expose the server

Until the first admin token exists, the /api/v3/configure/token/admin endpoint accepts unauthenticated requests, and the server listens on all network interfaces by default. Anyone who can reach the port during that window can claim the operator token and then use the processing engine to run code on the host.

Close the window using one of the following methods:

  • When running directly on your machine, use --http-bind 127.0.0.1:8181. With Docker, keep the default --http-bind 0.0.0.0:8181 inside the container and use --publish 127.0.0.1:8181:8181 on the host. Create your admin token before changing the bind address for a server running directly on your machine or the Docker host-port mapping to allow remote access.
  • Block the server port with a firewall until you create the token.
  • Start the server with a preconfigured admin token so the endpoint never accepts unauthenticated requests. We recommend this method for automated and production deployments.

Diskless architecture

InfluxDB 3 supports a diskless architecture that can operate with object storage alone, eliminating the need for locally attached disks. InfluxDB 3 Core can also work with only local disk storage when needed.

Choose how to start InfluxDB 3 Core. Both paths use the file object store to persist data to disk. For production deployments that need durable or highly available storage, use an object storage service such as Amazon S3, Azure Blob Storage, or Google Cloud Storage. See Object store examples.

Run directly on your machine

Use the installed influxdb3 binary to start the server. The examples store data in $HOME/.influxdb3/data and bind the HTTP API to 127.0.0.1:8181 for local access.

influxdb3 serve \
  --node-id host01 \
  --object-store file \
  --http-bind 127.0.0.1:8181 \
  --data-dir ~/.influxdb3/data

Run with Docker

The following docker run example starts the server in a container. To use Docker Compose instead, see the Compose example after it.

To run the Docker image with persistent local storage, create the host directories and give the container user (UID and GID 1500:1500) write access. The preparation command runs chown as root in a temporary container; the server runs as the image’s default non-root user. The following commands use separate directories for Core and Enterprise so the examples don’t share data.

mkdir -p "$HOME/.influxdb3/core/data" \
  "$HOME/.influxdb3/core/plugins"

docker run --rm --user root \
  --volume "$HOME/.influxdb3/core:/var/lib/influxdb3" \
  --entrypoint chown influxdb:3-core \
  1500:1500 /var/lib/influxdb3/data /var/lib/influxdb3/plugins

docker run --interactive --tty \
  --rm \
  --name influxdb3-core \
  --publish 127.0.0.1:8181:8181 \
  --volume "$HOME/.influxdb3/core/data:/var/lib/influxdb3/data" \
  --volume "$HOME/.influxdb3/core/plugins:/var/lib/influxdb3/plugins" \
  influxdb:3-core influxdb3 serve \
  --node-id node0 \
  --object-store file \
  --data-dir /var/lib/influxdb3/data \
  --plugin-dir /var/lib/influxdb3/plugins

The examples use the following values:

  • --name: Gives the container a predictable name for later docker exec commands.
  • --volume: Mounts the host’s product-specific data directory at /var/lib/influxdb3/data in the container. To store data elsewhere, change the host path and prepare its permissions before starting the server.
  • --object-store file --data-dir /var/lib/influxdb3/data: Stores data in the mounted directory so it survives container removal.
  • --node-id node0: Identifies the server in the object store. Keep this value when restarting with the same data.
  • --plugin-dir /var/lib/influxdb3/plugins: Stores processing engine plugins in the mounted plugins directory.
  • --publish 127.0.0.1:8181:8181: Maps host port 8181 on the loopback address to container port 8181. Connect from the Docker host at http://localhost:8181.

Run one example at a time. If another container uses host port 8181, stop it or use a different host port. To restart the same container after it exits, rerun the command; --rm removes the container on exit while the host directories retain your data.

Server binding and Docker port publishing

Both Core and Enterprise listen on 0.0.0.0:8181 by default. In Docker, this address refers to the container’s network interfaces. The images declare port 8181, but Docker doesn’t publish it to a host port unless you use --publish or a Compose ports entry.

These examples explicitly publish on 127.0.0.1 for local access. With Docker’s default networking configuration, omitting the host address (--publish 8181:8181 or ports: ["8181:8181"]) publishes on all host interfaces. Create your admin token before allowing remote access. For details, see Docker port publishing and mapping.

Docker Compose example

Docker Compose with a mounted file system object store

Object store examples

The startup examples use the local file system. For S3-compatible storage or an in-memory store, use the following server options when you run directly on your machine. With Docker or Compose, replace the --object-store and --data-dir arguments in the container command with these options, and remove the data directory bind mount. Keep the port publishing settings from your startup path. When you run directly on your machine, add --http-bind 127.0.0.1:8181 to these commands until you create your admin token.

S3 object storage

Memory-based object store

For more information about server options, use the CLI help or view the InfluxDB 3 CLI reference:

influxdb3 serve --help

Use the InfluxDB 3 Explorer query interface

You can complete the remaining steps in this guide using InfluxDB 3 Explorer, the web-based query and administrative interface for InfluxDB 3. Explorer provides visual management of databases and tokens and an easy way to write and query your time series data.

For more information, see the InfluxDB 3 Explorer documentation.

Set up authorization

InfluxDB 3 Core uses token-based authorization to authorize actions in the database. Authorization is enabled by default when you start the server. With authorization enabled, you must provide a token with influxdb3 CLI commands and HTTP API requests.

InfluxDB 3 Core supports admin tokens, which grant access to all CLI actions and API endpoints.

Preconfigured admin tokens for automated deployments

For CI/CD pipelines or automated deployments, you can start InfluxDB 3 Core with a preconfigured admin token file instead of creating tokens manually after startup. For more information, see Use a preconfigured admin token.

Create an operator token

After you start the server, create your first admin token. The first admin token you create is the operator token for the server.

Use the influxdb3 create token command with the --admin option to create your operator token:

influxdb3 create token --admin
# With Docker — in a new terminal:
docker exec -it 
CONTAINER_NAME
influxdb3 create token --admin

Replace CONTAINER_NAME with the name of your running Docker container.

The command returns a token string for authenticating CLI commands and API requests.

Store your token securely

InfluxDB displays the token string only when you create it. Store your token securely—you cannot retrieve it from the database later.

Now that an admin token exists, the server requires a token for all requests. If you need remote access, restart the server with the address you intend to use:

Set your token for authorization

Use your operator token to authenticate server actions in InfluxDB 3 Core, such as performing administrative tasks and writing and querying data.

Authorize CLI commands

Use one of the following methods to provide your token and authenticate influxdb3 CLI commands.

In your command, replace YOUR_AUTH_TOKEN with your token string (for example, the operator token from the previous step).

export INFLUXDB3_AUTH_TOKEN=
YOUR_AUTH_TOKEN
$env:INFLUXDB3_AUTH_TOKEN = "
YOUR_AUTH_TOKEN
"
set INFLUXDB3_AUTH_TOKEN=
YOUR_AUTH_TOKEN
# Make sure to include a space character at the end of this command.
Use the --token option
influxdb3 show databases --token 
YOUR_AUTH_TOKEN

Authorize HTTP API requests

For HTTP API requests, include your token in the Authorization header–for example:

curl "http://localhost:8181/api/v3/configure/database" \
  --header "Authorization: Bearer 
YOUR_AUTH_TOKEN
"

Learn more about tokens and permissions

  • Manage admin tokens - Understand and manage operator and named admin tokens

  • Authentication - Understand authentication, authorizations, and permissions in InfluxDB 3 Core


Was this page helpful?

Thank you for your feedback!