Skip to content

[crowdsec] Persist /etc/crowdsec #4

@LaurenceJJones

Description

@LaurenceJJones

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions