mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 02:46:15 -04:00
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:
parent
7c099fef5e
commit
6d9264cf3c
5 changed files with 527 additions and 6 deletions
|
@ -59,7 +59,7 @@ RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install "${PLUGIN_NAME}"; don
|
|||
#
|
||||
# For the conditional COPY trick, see:
|
||||
# https://stackoverflow.com/questions/31528384/conditional-copy-add-in-dockerfile#46801962
|
||||
COPY nop setting[s].json /opt/etherpad-lite/
|
||||
COPY ./settings.json /opt/etherpad-lite/
|
||||
|
||||
EXPOSE 9001
|
||||
CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue