You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InfluxDB 3 Enterprise supports clustered deployments and advanced features. To start a local standalone Enterprise container for testing, provide your license key as an environment variable.
118
+
Use the InfluxDB 3 Enterprise Docker image to run a standalone or clustered instance. This section describes how to mount a file system object store using Docker CLI or Docker Compose.
110
119
111
120
### Docker Compose
112
121
113
-
Create a `compose.yml` file with the following configuration:
122
+
To use Docker Compose, open your `compose.yml` file and define a service for InfluxDB 3 Enterprise.
123
+
124
+
```yaml
125
+
services:
126
+
influxdb3-enterprise:
127
+
container_name: influxdb3-enterprise
128
+
image: influxdb:3-enterprise
129
+
ports:
130
+
- 8181:8181
131
+
command:
132
+
- influxdb3
133
+
- serve
134
+
- --node-id=node0
135
+
- --cluster-id=cluster0
136
+
- --object-store=file
137
+
- --data-dir=/var/lib/influxdb3
138
+
- --plugin-dir=/var/lib/influxdb3-plugins
139
+
environment:
140
+
- INFLUXDB3_LICENSE_EMAIL=EMAIL_ADDRESS
141
+
```
114
142
115
-
%%COMPOSE%%
143
+
- Replace `EMAIL_ADDRESS` with your email address to bypass the email prompt when generating a trial or at-home license.
116
144
117
145
Start your container:
118
146
119
147
```bash
120
148
docker compose pull && docker compose run influxdb3-enterprise
121
149
```
122
150
123
-
## Docker with mounted file style object store
124
-
125
-
Run this command to start the InfluxDB 3 Enterprise container
126
-
127
-
```bash
128
-
docker run -d --name influxdb3-enterprise -p 8181:8181 \
To retain data across container restarts, mount a Docker volume or bind a local directory. Be sure to include the required `serve` command and storage configuration.
155
-
156
-
### Using a Docker volume
157
-
158
-
To persist data using a Docker-managed volume, run the following command:
162
+
To run the Docker image and persist data to the local file system, mount a volume for the object store.
159
163
160
164
```bash
161
165
docker run -it \
162
166
--volume /path/on/host:/path/in/container \
163
-
influxdb:3-core influxdb3 serve \
167
+
influxdb:3-enterprise influxdb3 serve \
164
168
--node-id my_host \
169
+
--cluster-id my_cluster \
165
170
--object-store file \
166
171
--data-dir /path/in/container
167
172
```
168
173
169
-
This command:
170
-
171
-
- Creates or reuses a Docker volume named `influxdb3-data`.
172
-
- Maps the default InfluxDB port (`8181`) to your local machine.
173
-
- Starts the InfluxDB server with a required host ID and object store configuration.
This mounts a local folder named `influxdb3-data` in your current working directory. Ensure that this directory exists and has appropriate write permissions.
0 commit comments