InfluxDB 2.x Error docker-compose.yml

Hi community,

I’m trying to update an InfluxDB service in my balena application.
Right now, I have InfluxDB 1.7.11 running without issues using this block in my docker-compose.yml:

influxdb:
  image: influxdb:1.7.11
  volumes:
    - influxdb-data:/var/lib/influxdb
    - influxdb-etc:/etc/influxdb

This works fine in balena local mode.

The problem comes when I try to switch to InfluxDB 2.x (for example influxdb:2.7). I tried:

influxdb:
  image: influxdb:2.7
  ports:
    - "8086:8086"
  volumes:
    - influxdb-data:/var/lib/influxdb2
    - influxdb-config:/etc/influxdb2
  environment:
    DOCKER_INFLUXDB_INIT_MODE: setup
    DOCKER_INFLUXDB_INIT_USERNAME: admin
    DOCKER_INFLUXDB_INIT_PASSWORD: admin123
    DOCKER_INFLUXDB_INIT_ORG: myorg
    DOCKER_INFLUXDB_INIT_BUCKET: mybucket

But when I run balena push <device>.local I get this error:

data should NOT have additional properties

I’ve already tried removing container_name, restart, and changing the environment format, but the error persists.

Has anyone successfully run InfluxDB 2.x on balena?
Is there any specific restriction in docker-compose.yml for this version?

Thanks in advance :folded_hands: