Docker (Compose) environment parameters for Version 2 (2.1.1) - Disable Logging

Hi all,

very quick question, I’ve started from Scratch with an Influx DB Version 2.1.1 (Before I’ve used 1.8.0 but this was not migrated).

As I’ve checked the environment parameters on the docker page I’ve just seen this parameters:

    environment:
      - DOCKER_INFLUXDB_INIT_MODE=setup
      - DOCKER_INFLUXDB_INIT_USERNAME=${DOCKER_INFLUXDB_INIT_USERNAME}
      - DOCKER_INFLUXDB_INIT_PASSWORD=${DOCKER_INFLUXDB_INIT_PASSWORD}
      - DOCKER_INFLUXDB_INIT_ORG=${DOCKER_INFLUXDB_INIT_ORG}
      - DOCKER_INFLUXDB_INIT_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
#     - DOCKER_INFLUXDB_INIT_RETENTION=1w
      - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}

While the old version allowed many more like:

      - INFLUXDB_DATA_ENGINE=tsm1
      - INFLUXDB_REPORTING_DISABLED=false
      - INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}
      - INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}
      - INFLUXDB_USER=${INFLUXDB_USER}
      - INFLUXDB_USER_PASSWORD=${INFLUXDB_USER_PASSWORD}
      - INFLUXDB_READ_USER=${INFLUXDB_READ_USER}
      - INFLUXDB_READ_USER_PASSWORD=${INFLUXDB_READ_USER_PASSWORD}
      - INFLUXDB_DB=${INFLUXDB_OPENHAB_DB}
      - TZ=${TZ}

is there any way to set this environment parameters also in InfluxDB2?

Is it somehow possible in Version 2 disable logging for query and http in a comfortable way?

Thanks
/Franz

Hi @FranzS,
I hope you are doing well :slight_smile:. Here is a list of configuration parameters for InfluxDB V2: InfluxDB configuration options | InfluxDB OSS 2.1 Documentation (reporting-disabled). These should also work for our docker instance. Let me know if you notice any different behaviour.

Thanks,
Jay

1 Like