From 9a1babc3658eff2202bc9d954b6976d9c8fe0728 Mon Sep 17 00:00:00 2001 From: thelittlefireman Date: Mon, 21 Dec 2020 16:57:44 +0100 Subject: [PATCH] Update docker doc for database persistence (#551) Fix #550 --- docs/v1.X/docs/docker/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/v1.X/docs/docker/README.md b/docs/v1.X/docs/docker/README.md index 702adda58..0193d8b87 100644 --- a/docs/v1.X/docs/docker/README.md +++ b/docs/v1.X/docs/docker/README.md @@ -86,6 +86,8 @@ docker run -d -v config.yaml:/etc/crowdsec/config.yaml \ --name crowdsec ``` +If you want to be able to restart/stop your container and keep the same DB `-v /path/myDatabase.db:/var/lib/crowdsec/data/crowdsec.db` you need to add a volume on local_api_credentials.yaml `-v /path/local_api_credentials.yaml:/etc/crowdsec/local_api_credentials.yaml` + ### Environment Variables * `COLLECTIONS` - Collections to install from the [hub](https://hub.crowdsec.net/browse/#collections), separated by space : `-e COLLECTIONS="crowdsecurity/linux crowdsecurity/apache2"` @@ -126,4 +128,4 @@ Please read [contributing](https://docs.crowdsec.net/Crowdsec/v1/contributing/) ## License -This project is licensed under the MIT License - see the [LICENSE](https://github.com/crowdsecurity/crowdsec/blob/master/LICENSE) file for details. \ No newline at end of file +This project is licensed under the MIT License - see the [LICENSE](https://github.com/crowdsecurity/crowdsec/blob/master/LICENSE) file for details.