Make "grist-local-testing" docker-compose example work out of the box (#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
This commit is contained in:
Dmitry 2024-08-23 17:50:08 -04:00 committed by GitHub
parent 5e1709b206
commit 8b48d1bc33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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