Portainer Templates logo

Portainer Templates

InfluxDB for Edge InfluxDB for Edge

Stack

edge

InfluxDB Time Series Data Platformm - Single Server deployment

Image details

Pulls: 1.1B
Architecture: amd64, arm64/v8
Image size: 177 MB
Latest: 3.11.1-enterprise
User: library
Created: May 12, 2016
Updated: 3 days ago
Status: active

Configuration

Type
Compose
Platform
linux
Image
influxdb:2.5.1-alpine
Ports
8086:8086
Volumes
/var/lib/influxdb2 : influxdb_data/etc/influxdb2 : influxdb_config
Env vars
DOCKER_INFLUXDB_INIT_MODE=setupDOCKER_INFLUXDB_INIT_USERNAME=${influxadmin}DOCKER_INFLUXDB_INIT_PASSWORD=${influxadminpass}DOCKER_INFLUXDB_INIT_ORG=first-${influxorg}DOCKER_INFLUXDB_INIT_BUCKET=${influxbucket}influxadmin=''influxadminpass=''influxorg=''influxbucket=''
Restart
unless-stopped
Source

Template by portainer·Source

Notes

Admin Password must be at least 10 characters

Standalone Install

Select an install method, to see config/commands for deploying InfluxDB for Edge

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select InfluxDB for Edge, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo
Original stackfile

The compose file this template deploys, straight from its repo:

version: '3.6'
services:
  influxdb:
    image: influxdb:2.5.1-alpine
    container_name: influxdb
    restart: unless-stopped
    networks:
      - monitoring
    ports:
      - '8086:8086'
    volumes:
      - influxdb_data:/var/lib/influxdb2
      - influxdb_config:/etc/influxdb2
    environment:
      - DOCKER_INFLUXDB_INIT_MODE=setup
      - DOCKER_INFLUXDB_INIT_USERNAME=${influxadmin}
      - DOCKER_INFLUXDB_INIT_PASSWORD=${influxadminpass}
      - DOCKER_INFLUXDB_INIT_ORG=first-${influxorg}
      - DOCKER_INFLUXDB_INIT_BUCKET=${influxbucket}
    healthcheck:
      test: "curl -f http://localhost:8086/ping"
      interval: 5s
      timeout: 10s
      retries: 5
      
networks:
  monitoring:
 
volumes:
  influxdb_data:
  influxdb_config:

Or deploy it directly from the source:

git clone https://github.com/portainer/templates
cd templates
docker compose -f edge/influxdb/docker-compose.yml up -d

More install options in our documentation.

Quick reference

  • Maintained by:
[InfluxData](https://github.com/influxdata/influxdata-docker)
  • Where to get help:
[InfluxDB Discord Server](https://discord.gg/9zaNCW2PRT) *(preferred for **InfluxDB 3 Core**, **InfluxDB 3 Enterprise**)*, [InfluxDB Community Slack](https://influxdata.com/slack) *(preferred for **InfluxDB v2**, **v1**)\*

Supported tags and respective Dockerfile links






















Quick reference (cont.)

  • Where to file issues:
[https://github.com/influxdata/influxdata-docker/issues](https://github.com/influxdata/influxdata-docker/issues?q=)
[`amd64`](https://hub.docker.com/r/amd64/influxdb/), [`arm64v8`](https://hub.docker.com/r/arm64v8/influxdb/)
  • Published image artifact details:
[repo-info repo's `repos/influxdb/` directory](https://github.com/docker-library/repo-info/blob/master/repos/influxdb) ([history](https://github.com/docker-library/repo-info/commits/master/repos/influxdb))  
(image metadata, transfer size, etc)
  • Image updates:
[official-images repo's `library/influxdb` label](https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Finfluxdb)  
[official-images repo's `library/influxdb` file](https://github.com/docker-library/official-images/blob/master/library/influxdb) ([history](https://github.com/docker-library/official-images/commits/master/library/influxdb))
  • Source of this description:
[docs repo's `influxdb/` directory](https://github.com/docker-library/docs/tree/master/influxdb) ([history](https://github.com/docker-library/docs/commits/master/influxdb))

Notice

On September 15, 2026, the latest tag for InfluxDB will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your deployments.

What is InfluxDB?

logo
InfluxDB is the time series database platform designed to collect, store, and process large amounts of event and time series data. Ideal for monitoring (sensors, servers, applications, networks), financial analytics, and behavioral tracking.

Start InfluxDB 3 Core

... via docker compose
Example compose.yaml for influxdb:
# compose.yaml
name: influxdb3
services:
  influxdb3-core:
    container_name: influxdb3-core
    image: influxdb:3-core
    ports:
      - 8181:8181
    command:
      - influxdb3
      - serve
      - --node-id=node0
      - --object-store=file
      - --data-dir=/var/lib/influxdb3/data
      - --plugin-dir=/var/lib/influxdb3/plugins
    volumes:
      - type: bind
        source: ~/.influxdb3/core/data
        target: /var/lib/influxdb3/data
      - type: bind
        source: ~/.influxdb3/core/plugins
        target: /var/lib/influxdb3/plugins

Alternatively, you can use the following command to start InfluxDB 3 Core:
docker run --rm -p 8181:8181 \
  -v $PWD/data:/var/lib/influxdb3/data \
  -v $PWD/plugins:/var/lib/influxdb3/plugins \
  influxdb:3-core influxdb3 serve \
    --node-id=my-node-0 \
    --object-store=file \
    --data-dir=/var/lib/influxdb3/data \
    --plugin-dir=/var/lib/influxdb3/plugins

InfluxDB 3 Core starts with:
  • Data persistence at /var/lib/influxdb3/data
  • Python processing engine enabled with plugin directory
  • HTTP API listening on port 8181

Using InfluxDB 3 Core

After starting your InfluxDB 3 server, follow the Get Started guide to create an authorization token and start writing, querying, and processing data via the built-in influxdb3 CLI or the HTTP API.

Recommended tools for InfluxDB 3 Core

Use the following tools with InfluxDB 3 Core:

Customize server options

Customize your instance with available server options:
docker run --rm influxdb:3-core influxdb3 serve --help

Available InfluxDB variants

  • influxdb:3-core - Latest InfluxDB OSS (InfluxDB 3 Core)
  • influxdb:2 - Previous generation OSS (InfluxDB v2)
  • influxdb:1.11 - InfluxDB v1

InfluxDB 3 Core (influxdb:3-core) - Latest OSS

  • Latest generation using object storage with the InfluxDB 3 storage engine, Apache Arrow, and DataFusion SQL
  • Sub-10ms queries and unlimited cardinality
  • Supports SQL and InfluxQL queries
  • Includes Python processing engine
  • Designed for real-time monitoring and recent data
  • Includes InfluxDB v1 and v2 compatibility APIs

InfluxDB v2 (influxdb:2)

  • Built on the TSM storage engine
  • Supports Flux query language
  • Integrated UI and dashboards
  • Includes v1 compatibility API that supports InfluxQL

InfluxDB v1 (influxdb:1.11)

  • Built on the TSM storage engine
  • Original version with InfluxQL query language
  • Proven stability for existing deployments

InfluxDB 3 Enterprise (license required) (influxdb:3-enterprise)

Adds unlimited data retention, compaction, clustering, and high availability to InfluxDB 3 Core.
For setup instructions, see the InfluxDB 3 Enterprise installation documentation.

InfluxDB v1 Enterprise (license required)

  • influxdb:1.11-data - Data nodes for clustering
  • influxdb:1.11-meta - Meta nodes for cluster coordination (port 8091)

For setup instructions, see the InfluxDB v1 Enterprise Docker documentation.

Version compatibility

Migration paths

To migrate from v1 or v2 to InfluxDB 3:
  1. Dual-write new data to v1/v2 and InfluxDB 3.
  2. Query historical data from v1/v2 and write it to InfluxDB 3. InfluxDB 3 Enterprise is recommended for historical query capability.

Using InfluxDB v2

InfluxDB v2 is a previous version. Consider InfluxDB 3 Core for new deployments.
Enter the following command to start InfluxDB v2 initialized with custom configuration:
docker run -d -p 8086:8086 \
  -v $PWD/data:/var/lib/influxdb2 \
  -v $PWD/config:/etc/influxdb2 \
  -e DOCKER_INFLUXDB_INIT_MODE=setup \
  -e DOCKER_INFLUXDB_INIT_USERNAME=my-user \
  -e DOCKER_INFLUXDB_INIT_PASSWORD=my-password \
  -e DOCKER_INFLUXDB_INIT_ORG=my-org \
  -e DOCKER_INFLUXDB_INIT_BUCKET=my-bucket \
  influxdb:2

After the container starts, visit http://localhost:8086 to view the UI.
For detailed instructions, see the InfluxDB v2 Docker Compose documentation.

Using InfluxDB v1

InfluxDB v1 is a previous version. Consider InfluxDB 3 Core for new deployments.
docker run -d -p 8086:8086 \
  -v $PWD:/var/lib/influxdb \
  influxdb:1.11

This starts InfluxDB v1 with:
  • HTTP API on port 8086
  • Data persisted to current directory

For more information, see the InfluxDB v1 Docker documentation. For v1 Enterprise installation, see the InfluxDB Enterprise v1 documentation.

Image Variants

The influxdb images come in many flavors, each designed for a specific use case.

influxdb:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

influxdb:<version>-alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.
To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

License

View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's influxdb/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Serve InfluxDB for Edge on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.

Proxying influxdb-for-edge.example.com to http://influxdb:8086

Add this to your Caddyfile

influxdb-for-edge.example.com {
	reverse_proxy http://influxdb:8086
}

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs <container>
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Port already in use

If deployment fails with "Bind for 0.0.0.0:8086 failed: port is already allocated", something else on your server is using that port.

  • Find what's using it: sudo ss -tlnp | grep :8086
  • Stop the other service, or pick a different host port. In 8086:8086 only the left number is yours to change, the right one belongs to the app.

Running but the page won't load

The container is up but nothing appears in your browser.

  • Use your server's real IP: http://your-server-ip:8086. The 0.0.0.0 link Portainer shows isn't a real address.
  • Give it a minute after first deploy, influxdb can take a while to initialise.
  • Make sure your firewall allows the port, e.g. sudo ufw allow 8086

Image won't pull

Test the pull directly on the host: docker pull influxdb:2.5.1-alpine

  • "manifest unknown" means the tag no longer exists.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64/v8
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Container keeps restarting

The unless-stopped restart policy relaunches the app after every crash, so the real error can scroll past.

  • Check the logs right after a restart, the last few lines before it died are the useful ones.
  • Get the exit code with docker inspect <container> --format '{{.State.ExitCode}}'
  • Still stuck? Redeploy once with the restart policy set to no so the failure stays visible.

Required settings are blank

influxadmin, influxadminpass, influxorg, influxbucket have no default value, and influxdb may crash or misbehave if left empty.

  • Fill them in on the deploy screen before hitting deploy.

Stack won't deploy

Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.

  • YAML only accepts spaces for indentation, a single tab breaks the whole file.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A Compose stack

InfluxDB for Edge is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.

The app image

An image is the app packed up ready to go, everything InfluxDB for Edge needs bundled into one download. This template pulls influxdb:2.5.1-alpine, which Docker fetches once (about 177 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. InfluxDB for Edge's comes from Docker Hub as one of its official, curated images.

Version tags

The bit after the colon in the image name is the version tag. This one pins 2.5.1-alpine, so every redeploy gives you that exact build until you bump it yourself.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64/v8, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Ports

A port is the door the app answers on. A mapping like 8086:8086 means it's reachable on port 8086 of your server, where the left number is yours to change and the right one belongs to the app. It opens:

  • 8086:8086

Volumes

A volume is where InfluxDB for Edge keeps its files so they survive an update or a restart. Without one, anything it saves would sit inside the container and vanish the moment it's recreated. This template mounts:

  • /var/lib/influxdb2 kept in the influxdb_data volume Docker manages
  • /etc/influxdb2 kept in the influxdb_config volume Docker manages

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. InfluxDB for Edge takes 9 of them, and 4 need a value before it'll start properly:

  • DOCKER_INFLUXDB_INIT_MODE, defaults to setup
  • DOCKER_INFLUXDB_INIT_USERNAME, pulled from your own environment
  • DOCKER_INFLUXDB_INIT_PASSWORD, pulled from your own environment
  • DOCKER_INFLUXDB_INIT_ORG, defaults to first-influxorg
  • DOCKER_INFLUXDB_INIT_BUCKET, pulled from your own environment
  • influxadmin, needs a value. Influx Admin Username
  • influxadminpass, needs a value. Influx Admin User Password
  • influxorg, needs a value. Influx Org Name
  • influxbucket, needs a value. Influx Bucket Name

Restart policy

The restart policy here is unless-stopped, so Docker restarts InfluxDB for Edge after a crash or reboot, but leaves it off when you stop it on purpose. You can change this on the deploy screen. The choices are no (never restart), on-failure (only after a crash), unless-stopped (restart unless you stop it), and always (bring it back no matter what).

Health check

A health check is how Docker tells whether InfluxDB for Edge is really working, not just switched on. It runs curl -f http://localhost:8086/ping every 5s and flags the container as unhealthy if that keeps failing.

Networking

Nothing custom is set, so InfluxDB for Edge sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container influxdb. That's what you'll spot in the containers list and use in commands like docker logs influxdb.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set InfluxDB for Edge up. Add the template list to Portainer once, then deploying InfluxDB for Edge is a click rather than a wall of config.