Skip to content

Commit

Permalink
Make "grist-local-testing" docker-compose example work out of the box (
Browse files Browse the repository at this point in the history
…#1165)

* Maintain ./persist subdirectory using a dummy .gitkeep file
* Have PERSIST_DIR default to it
* Update README with more detail how to run and info about PERSIST_DIR
  • Loading branch information
dsagal authored Aug 23, 2024
1 parent 5e1709b commit 8b48d1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docker-compose-examples/grist-local-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ See https://support.getgrist.com/self-managed for more information.

## How to run this example

This example can be run with `docker compose up`.
To run this example, change to the directory containing this example, and run:
```sh
docker compose up
```
Then you should be able to visit your local Grist instance at <http://localhost:8484>.

This will start an instance that stores its documents and files in the `persist/` subdirectory.
You can change this location using the `PERSIST_DIR` environment variable.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ services:
image: gristlabs/grist:latest
volumes:
# Where to store persistent data, such as documents.
- ${PERSIST_DIR}/grist:/persist
- ${PERSIST_DIR:-./persist}/grist:/persist
ports:
- 8484:8484
Empty file.

0 comments on commit 8b48d1b

Please sign in to comment.