Hello,
i’m currently trying to deploy a influxdb2 container on my already existing docker swarm environment.
By reading the info on the dockerhub page & documentations i was able to create a docker compose file which sets up my container and initializes it on the first run time with an initial user, pass, org and bucket via the following variables:
- DOCKER_INFLUXDB_INIT_USERNAME
- DOCKER_INFLUXDB_INIT_PASSWORD
- DOCKER_INFLUXDB_INIT_ORG
- DOCKER_INFLUXDB_INIT_BUCKET
- DOCKER_INFLUXDB_INIT_RETENTION
Now i have two questions regarding this setup.
- Does the docker influxdb container also support using docker secrets when setting up with environment variables (as i don’t really like plain text passwords in my docker-compose.yaml or .env file)?
- I’m a little bit confused by needing to set up an initial user + org + bucket as this isn’t really what i want to achieve during setup. Is there a way to just initialize some sort of admin user on setup that i then use for creating other users, buckets etc. (because a bucket for my initial ‘admin’ user would kind of be waste)?
Would really appreciate any help