Skip to content

influxdb core is unhealthy #5

@jjanderson

Description

@jjanderson

Hi,

Thanks for all your hard work on this.

I am trying to install using portainer and the docker compose file as per below, however portainer is throwing a deployment error with "influxdb3-core is unhealthy"

Could you help?

Thanks

Compose file

services:
influxdb3-core:
container_name: influxdb3-core
image: influxdb:3-core
ports:
- 8181:8181
command:
- influxdb3
- serve
- --node-id=${INFLUXDB_NODE_ID}
- --object-store=file
- --data-dir=/var/lib/influxdb3
volumes:
- /volume1/docker/influxdb_data:/var/lib/influxdb3
healthcheck:
test: ["CMD-SHELL", "curl -f -H 'Authorization: Bearer ${INFLUXDB_TOKEN}' http://localhost:8181/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped

telegraf:
container_name: telegraf
image: telegraf
depends_on:
influxdb3-core:
condition: service_healthy
# Optionally, you can switch to depend on influxdb3-enterprise if using that
environment:
- INFLUXDB_HOST=${INFLUXDB_HOST}
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUXDB_ORG}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
- TELEGRAF_COLLECTION_INTERVAL=${TELEGRAF_COLLECTION_INTERVAL}
- HOSTNAME=telegraf
volumes:
- /volume1/docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
restart: unless-stopped

grafana:
image: grafana/grafana
ports:
- "${GRAFANA_PORT}:3000"
volumes:
- /volume1/docker/grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
depends_on:
- influxdb3-core
# Or switch to influxdb3-enterprise as needed
restart: unless-stopped

volumes:
influxdb_data:
grafana_data:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions