tiredofit / docker-wordpress

Dockerized Content Management System many with customizable options
MIT License
36 stars 7 forks source link

Allow ENV usage in WordPress #26

Open cfoellmann opened 8 months ago

cfoellmann commented 8 months ago

I will integrate https://github.com/vlucas/phpdotenv OR https://github.com/scottjs/wp-dotenv like described here https://m.dotdev.co/secure-your-wordpress-config-with-dotenv-d939fcb06e24 https://erikpoehler.com/2020/12/30/using-an-env-file-for-database-and-other-credentials/

I will let you know how and maybe it is interesting enough for you to integrate.

cfoellmann commented 7 months ago

@tiredofit you know your docker-nginx-php-fpm better: is there an easy way to modify the fpm config to set clear_env = no?

tiredofit commented 7 months ago

I don't think it exists as an environment variable to be easily switchable but it could be. Did you want to try submitting a PR for it?

I have as a long term nagging todo to create functionality to support includes of extra configuration files just for it, but waiting for a client to come along to have a need for it.