Skip to content

Commit

Permalink
fix(influxdbv2): INIT_ADMIN_TOKEN not set via Docker Secrets
Browse files Browse the repository at this point in the history
Use the environment variable `DOCKER_INFLUXDB_INIT_ADMIN_TOKEN`
as opposed to `DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE` which is not
setting the token value in the container.

closes #96

Signed-off-by: Shantanoo 'Shan' Desai <[email protected]>
  • Loading branch information
shantanoo-desai committed Jul 21, 2023
1 parent 2eb22dc commit 5713b62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/services/docker-compose.influxdbv2.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
- DOCKER_INFLUXDB_INIT_RETENTION=${DOCKER_INFLUXDB_INIT_RETENTION}
- DOCKER_INFLUXDB_INIT_USERNAME_FILE=/run/secrets/influxdbv2_admin_username
- DOCKER_INFLUXDB_INIT_PASSWORD_FILE=/run/secrets/influxdbv2_admin_password
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE=/run/secrets/influxdbv2_admin_token
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDBV2_ADMIN_TOKEN}
{% if komponist.configuration.influxdbv2.disable_ui | default(false) %}
- INFLUXD_UI_DISABLED=true
{% endif %}
Expand All @@ -50,8 +50,6 @@ services:
mode: 0444
- source: influxdbv2_admin_password
mode: 0444
- source: influxdbv2_admin_token
mode: 0444
security_opt:
- "no-new-privileges=true"
volumes:
Expand All @@ -70,5 +68,3 @@ secrets:
environment: INFLUXDBV2_ADMIN_USERNAME
influxdbv2_admin_password:
environment: INFLUXDBV2_ADMIN_PASSWORD
influxdbv2_admin_token:
environment: INFLUXDBV2_ADMIN_TOKEN

0 comments on commit 5713b62

Please sign in to comment.