mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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:
parent
5e1709b206
commit
8b48d1bc33
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user