From 9e2baf41120cac9f98b5e2a29afebeab0e91b157 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 16 Jun 2023 21:48:58 +0200 Subject: [PATCH] docs: Document how to use docker setup and keep statistics --- .gitignore | 1 + README.md | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 4b51705..8b448ed 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .idea .vscode/ statistics.json +pixelflut/ diff --git a/README.md b/README.md index 1a951a7..64182ec 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,11 @@ This command will start the Pixelflut server in a docker container docker run --rm --init -t -p 1234:1234 -p 5900:5900 -p 9100:9100 sbernauer/breakwater # --help ``` +If you want to permanently save statistics (to keep them between restarts) you can use the following command: +```bash +mkdir -p pixelflut && docker run --rm -u 1000:1000 --init -t -p 1234:1234 -p 5900:5900 -p 9100:9100 -v "$(pwd)/pixelflut:/pixelflut" foo:bar --statistics-save-file /pixelflut/statistics.json +``` + # Ready to use Docker compose setup The ready to use Docker compose setup contains the Pixelflut server, a prometheus server and a Grafana for monitoring. Use the following command to start the whole setup