docker: enable environment variables settings by default

By leveraging the templating mechanism in `settings.json`, this change allows a
Docker client to run a prebuilt image and change some basic configuration
settings, like the instance name or, more importantly, the database
coordinates.

By default, the image runs witho no administrative user enabled. If a value is
given to ADMIN_PASSWORD, the `admin` user will be activated.

Also closes https://github.com/ether/etherpad-lite/issues/3623

---
Modified by muxator to support conditional user activation at runtime.
This commit is contained in:
Pierre Prinetti 2019-10-01 07:03:59 +02:00 committed by muxator
parent 7c099fef5e
commit 6d9264cf3c
5 changed files with 527 additions and 6 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
node_modules
settings.json
/settings.json
!settings.json.template
APIKEY.txt
SESSIONKEY.txt