I have a PHP application which reads the database config from a file named "database.php". Now, in the production server, I am planning to pass this database.php as a secret file.
My question is whether my PHP application will read the secret file(database.php) as a normal file(because it is not in file storage, but in RAM), or if the read will be slower as the container has to request the secret from SWARM Manager.
A similar example is in docker docs where they have passed index.html as a secret file. -> link to docs