|
volumes: |
|
- crowdsec-data:/var/lib/crowdsec/data/ |
|
- wiredoor-logs:/var/log/nginx:ro |
|
- ./extras/crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml |
Hey Laurence from CrowdSec here 👋🏻
I noticed some users having issue keeping their connection to console whilst using wiredoor, the reason is the /etc/crowdsec directory holds a file called online_api_credentials.yaml which is the information for CAPI / Console to know the engine ID.
Without this directory or at least this file persisted if the container is restarted then it will loose the connection / information held within the file. We suggest persisting this directory within a named volume since you are already doing this for /var/lib/crowdsec/data.
Thank you for reading and implementing CrowdSec so easily within your docker compose, have a great day!
edit: if you encounter an issue mounting your custom acquis.yaml, just note you can mount it to /etc/crowdsec/acquis.d/nginx.yaml for example.
docker-setup/docker-compose.yml
Lines 31 to 34 in 6bc77a6
Hey Laurence from CrowdSec here 👋🏻
I noticed some users having issue keeping their connection to console whilst using wiredoor, the reason is the
/etc/crowdsecdirectory holds a file calledonline_api_credentials.yamlwhich is the information for CAPI / Console to know the engine ID.Without this directory or at least this file persisted if the container is restarted then it will loose the connection / information held within the file. We suggest persisting this directory within a named volume since you are already doing this for
/var/lib/crowdsec/data.Thank you for reading and implementing CrowdSec so easily within your docker compose, have a great day!
edit: if you encounter an issue mounting your custom acquis.yaml, just note you can mount it to
/etc/crowdsec/acquis.d/nginx.yamlfor example.