Use Docker Secrets for Guacamole authentication
mainYou can avoid using plaintext environment variables for sensitive database credentials by using Docker Secrets.
Append _FILE to the standard environment variable names (e.g., MYSQL_PASSWORD becomes MYSQL_PASSWORD_FILE) and provide the path to the secret file within the container (typically /run/secrets/<secret_name>).
Precedence Rules:
- You can mix standard environment variables and
_FILEvariables. - If both a standard variable (e.g.,
MYSQL_PASSWORD) and its_FILEcounterpart (e.g.,MYSQL_PASSWORD_FILE) are provided, the_FILEversion takes precedence.