serversideup / docker-php

🐳 Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!
https://serversideup.net/open-source/docker-php/
GNU General Public License v3.0
1.68k stars 109 forks source link

Allow users to disable provided configurations for complete customization options #230

Closed jaydrogers closed 9 months ago

jaydrogers commented 9 months ago

Discussed in https://github.com/serversideup/docker-php/discussions/173

Originally posted by **jaydrogers** April 10, 2023 # 👉 Describe the problem [comment]: <> (What are you trying to solve?) * People who want to have full customization of the image need to run strange and hacky scripts in order to start customizing the image # 👥 Problem evidence & reach [comment]: <> (How many people have this problem?) Here is an example from a Discord user. If they want full customization of the image, then they have to run a script to delete our configs, then place their own. image # 🏆 How to solve this problem [comment]: <> (Describe the feature that you are proposing and how it will solve the problem) ### Create an environment variable do disable the enabling of our default server configurations * Create an environment variable like `DISABLE_DEFAULT_CONFIG` * If `true`, then: Do not enable the server configurations we provide. The user will be required to set their own server configuration # 💯 How do we validate the problem is solved? [comment]: <> (Explain use cases on how we can measure the success of this implementation) - Users will not need to run hacky scripts to delete server configurations - Users can easily place their own configurations to have full control of the web server