From 8b48d1bc338671df708a3cc03d008771a38942af Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 23 Aug 2024 17:50:08 -0400 Subject: [PATCH] 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 --- docker-compose-examples/grist-local-testing/README.md | 9 ++++++++- .../grist-local-testing/docker-compose.yml | 2 +- .../grist-local-testing/persist/.gitkeep | 0 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 docker-compose-examples/grist-local-testing/persist/.gitkeep diff --git a/docker-compose-examples/grist-local-testing/README.md b/docker-compose-examples/grist-local-testing/README.md index cd610cfd..ad45379b 100644 --- a/docker-compose-examples/grist-local-testing/README.md +++ b/docker-compose-examples/grist-local-testing/README.md @@ -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`. \ No newline at end of file +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 . + +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. diff --git a/docker-compose-examples/grist-local-testing/docker-compose.yml b/docker-compose-examples/grist-local-testing/docker-compose.yml index 028d4e0f..5ccf7399 100644 --- a/docker-compose-examples/grist-local-testing/docker-compose.yml +++ b/docker-compose-examples/grist-local-testing/docker-compose.yml @@ -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 diff --git a/docker-compose-examples/grist-local-testing/persist/.gitkeep b/docker-compose-examples/grist-local-testing/persist/.gitkeep new file mode 100644 index 00000000..e69de29b