Admin token - Docker compose secrets

The secret for configuring the admin token, doesn’t seems to work anymore.
This is an example of the configuration that i had configured in the docker compose file.

vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    environment:
      WEBSOCKET_ENABLED: "true"  # Enable WebSocket notifications.
      SIGNUPS_ALLOWED: 'true'
      ADMIN_TOKEN: /run/secrets/admin_token
      SMTP_FROM: 'vaultwarden@one4all.icu'
      SMTP_HOST: 'smtp.gmail.com'
      SMTP_PORT: '587'
      SMTP_SECURITY: 'starttls'
      SMTP_USERNAME: 'bbarnoux@gmail.com'
      SMTP_PASSWORD: /run/secrets/smtp_password
      LOG_FILE: '/var/log/vaultwarden/vaultwarden.log'
      LOG_LEVEL: "info"
      ROCKET_CLI_COLORS: "false"
      EXTENDED_LOGGING: "true"
      IP_HEADER: "X-Forwarded-For"
    secrets:
       - admin_token
       - smtp_password
    volumes:
      - vaultwarden-data:/data
      - logs:/var/log/vaultwarden

secrets:
   admin_token:
     file: ./vaultwarden/admin_token.txt
   smtp_password:
     file: ./vaultwarden/smtp_password.txt
   backup_password:
     file: ./vaultwarden/zip_password.txt

Did i miss something ?

Regards,

BBA

If I’m correct you need to use ADMIN_TOKEN_FILE instead.

Yes you are correct !! Thank you !
I found the pull request about it : #12 - Update dependency dani-garcia/bitwarden_rs to v1.18.0 - vaultwarden - Gitea: Git with a cup of tea
But i don’t think i find a mention in the documentation

Regards,

BBA