V6 on Docker: FTLCONF_webserver_api_password support secrets

There is no replacement for WEBPASSWORD_FILE and I'm not sure if the compose file allows to use an external file like you are trying.

Compose files can use .env files to store environment variables.

Try adding a file called .env on the same directory where your compose file is.
Then add something like this in the file:

PASSWORD=My_Password_1234

Now change your compose file to use the variable, like this:

FTLCONF_weserver_api_password: "${PASSWORD}"