You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,6 @@ labels:
134
134
type: apache2
135
135
```
136
136
137
-
138
137
## Recommended configuration
139
138
140
139
### Volumes
@@ -146,6 +145,14 @@ to avoid losing credentials and decision data in case of container destruction a
146
145
* Acquisition: `/etc/crowdsec/acquis.d` and/or `/etc/crowdsec.acquis.yaml` (yes, they can be nested in `/etc/crowdsec`)
147
146
* Database when using SQLite (default): `/var/lib/crowdsec/data`
148
147
148
+
### Hub updates
149
+
150
+
To ensure you have the latest version of the collections, scenarios, parsers, etc., you can set the variable `DO_HUB_UPGRADE` to true.
151
+
This will perform an update/upgrade of the hub every time the container is started.
152
+
153
+
Be aware that if your container is misbehaving and caught in a restart loop, the CrowdSec hub may ban your IP for some time and your containers
154
+
will run with the version of the hub that is cached in the container's image. If you enable `DO_HUB_UPGRADE`, do it when your infrastructure is running
155
+
correctly and make sure you have some monitoring in place.
149
156
150
157
## Start a Crowdsec instance
151
158
@@ -316,7 +323,7 @@ config.yaml) each time the container is run.
316
323
| `BOUNCERS_ALLOWED_OU` | bouncer-ou | OU values allowed for bouncers, separated by comma |
317
324
| | | |
318
325
| __Hub management__ | | |
319
-
| `NO_HUB_UPGRADE` | false | Skip hub update / upgrade when the container starts |
326
+
| `DO_HUB_UPGRADE` | false | Force hub update / upgrade when the container starts. If for some reason the container restarts too often, it may lead to a temporary ban from hub updates. |
320
327
| `COLLECTIONS` | | Collections to install, separated by space: `-e COLLECTIONS="crowdsecurity/linux crowdsecurity/apache2"`|
321
328
| `PARSERS` | | Parsers to install, separated by space |
322
329
| `SCENARIOS` | | Scenarios to install, separated by space |
0 commit comments