Skip to content

Commit

Permalink
Add var volume to Docker Compose file (#6331)
Browse files Browse the repository at this point in the history
required to make installed plugins persistent over container recreation
  • Loading branch information
bb authored Apr 16, 2024
1 parent c8d335d commit 5dff5b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@ docker run -d \
## Ready to use Docker Compose

```yaml
version: "3.8"

# Add this file to extend the docker-compose setup, e.g.:
# docker-compose build --no-cache
# docker-compose up -d --build --force-recreate
Expand All @@ -293,6 +291,7 @@ services:
# no volume mapping of node_modules as otherwise the build-time installed plugins will be overwritten with the mount
# the same applies to package.json and pnpm-lock.yaml in root dir as these would also get overwritten and build time installed plugins will be removed
- ./plugins:/opt/etherpad-lite/src/plugin-packages
- ./var:/opt/etherpad-lite/var
depends_on:
- postgres
environment:
Expand Down

0 comments on commit 5dff5b7

Please sign in to comment.