mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
add docker dev setup (#6155)
* fix docker setup * wording fix * remove production env * remove unneeded docker parts * fix image size * add readme * add dev readme * further refactoring * make version work * cleanup ignore * refactor commit * fix pnpm mount
This commit is contained in:
parent
5d24593dd8
commit
03c8518e66
6 changed files with 147 additions and 18 deletions
|
@ -20,6 +20,37 @@ If you want to use a personalized settings file, **you will have to rebuild your
|
|||
All of the following instructions are as a member of the `docker` group.
|
||||
By default, the Etherpad Docker image is built and run in `production` mode: no development dependencies are installed, and asset bundling speeds up page load time.
|
||||
|
||||
=== Building and running with docker compose
|
||||
A docker compose file is provided in the project. Please first copy `.env.default` to `.env` and adjust the variables to your preference.
|
||||
|
||||
```
|
||||
docker compose up -d # will build and start the docker container on port 9001 with development settings.
|
||||
```
|
||||
|
||||
Starting dev server:
|
||||
|
||||
```
|
||||
docker compose exec app bash -c "./src/bin/run.sh"
|
||||
```
|
||||
|
||||
For production, please create your own docker compose file and change the `target` property in the build section to `production`. In addition, change the NODE_ENV in environment to production. For instance:
|
||||
|
||||
```
|
||||
docker compose -f docker-compose-production.yml up -d
|
||||
```
|
||||
|
||||
For plugins, please add them in the build section under ETHERPAD_PLUGINS, for instance:
|
||||
|
||||
```
|
||||
args:
|
||||
ETHERPAD_PLUGINS: >-
|
||||
ep_image_upload
|
||||
ep_embedded_hyperlinks2
|
||||
ep_headings2
|
||||
ep_align
|
||||
...
|
||||
```
|
||||
|
||||
==== Rebuilding with custom settings
|
||||
Edit `<BASEDIR>/settings.json.docker` at your will. When rebuilding the image, this file will be copied inside your image and renamed to `settings.json`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue