Crowdsec and Caddy reverse proxy in docker-compose?

  • Hi. Does anyone here use Crowdsec + Caddy through docker-compose? I can't find any documentation that describes this specific situation... It's like I'd need to cobble together instructions from various sources, or some documentation isn't detailed enough for me (e.g. how do I run xcaddy within docker?) and it all gets too confusing for me.


    I bet I'm not the only one who wants a reverse proxy setup like this! I'd love any guidance, please. Thanks!

  • Using these on a container will clash with OMV GUI if you don't change the web port the workbench uses to something other then 80

  • Thanks for your responses. Could you provide a little more clarification on how to make it all happen, please?

    I dropped the docker-compose.yaml that fbeye posted into OMV's docker/compose/files interface, but it didn't work. Ditto for the compose file that Soma linked to. (And I made sure to get a proper Crowdsec API token and put it into the environment field of OMV's compose/files interface.)

    Here's a screenshot of the error.

    Thanks.

  • If I do it this way, will it work out of the box, or do I need to configure some things?

    What should the caddy file look like for crowdsec?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!