requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Making config file location configurable via env variable #179

Closed mjknowles closed 2 years ago

mjknowles commented 5 years ago

Apologies if I needed to submit this as an idea first, but I thought others could potentially find this useful. If the environment variable is not provided, then the application will default to expecting the config file at the ROOTPATH.

More detail:

I created this feature in a fork so that I can mount a config file stored in Azure File Storage as a volume in my container in an Azure App Service. Azure currently requires users to mount the entire storage container as a volume (instead of just mounting an individual file), therefore I wasn't able to mount it to /var/wiki since it would hide all the existing files.

My docker-compose file can now look like:

version: "3" services: wikijs: image: ports:

FranklinYu commented 5 years ago

Features are no longer developed in v1 according to Requarks/wiki#755; you may want to re-submit this PR to v2 at https://github.com/Requarks/wiki.