Skip to content

docs: Adding data mount prereq #6147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions content/shared/influxdb3/install.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This content should go into Setup (after I merge Scott's) because it's setup required to start the server. I'm only including the docker pull command in Install.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,37 @@ Azure Blob Storage, and Google Cloud Storage.
You can also use many local object storage implementations that provide an
S3-compatible API, such as [Minio](https://min.io/).

## Prerequisites

Before installing InfluxDB 3, complete the following:

### 1. Prepare a host data directory

When running InfluxDB 3 in Docker, mount a host directory to `/var/lib/influxdb3` to persist your data and configuration across container restarts.

> [!Note]
> Instead of using `/var/lib/influxdb3` directly on your host, use a local directory in your current working directory.
> This approach makes it easier to manage and access the files.

#### Create the directory

Create a directory

```bash
# Create a data directory in your working directory
mkdir -p $PWD/influxdb3-data
```

#### Set permissions

Set the appropriate permissions so InfluxDB can write data to the directory:

```bash
# Set permissions to allow InfluxDB to write data
chmod 755 $PWD/influxdb3-data
```
You’ll mount this directory to `/var/lib/influxdb3` when you start the container.

## Quick install

Use the InfluxDB 3 quick install script to install {{< product-name >}} on
Expand Down