I’m trying to set up a docker container of InfluxDB 2 after being on the beta version of 2.0 for a very long time. I want to keep the old
9999 port, however, so I have the following setup in my docker-compose file:
influxdb2: ports: - "9999:9999" image: influxdb/influxdb:latest environment: - INFLUXD_HTTP_BIND_ADDRESS=:9999 - DOCKER_INFLUXDB_INIT_MODE=setup - DOCKER_INFLUXDB_INIT_USERNAME=myUsername // Example deets here - DOCKER_INFLUXDB_INIT_PASSWORD=myPassword - DOCKER_INFLUXDB_INIT_ORG=myOrg - DOCKER_INFLUXDB_INIT_BUCKET=myBucket - DOCKER_INFLUXDB_INIT_RETENTION=365d - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mySecretToken
However, when I try to connect to the InfluxDB UI at
localhost:9999, all I get is
Bad Gateway. Additionally, in the logs of the container, I see this:
[httpd] 2021/05/12 08:20:13 Starting HTTP service [httpd] 2021/05/12 08:20:13 Authentication enabled: false [httpd] 2021/05/12 08:20:13 Listening on HTTP: [::]:8086
So I’m not even sure it’s being set up correctly.
Am I missing a key step here?