# How to add bouncer to docker compose file?

**URL:** <https://discourse.crowdsec.net/t/how-to-add-bouncer-to-docker-compose-file/930>\
**Category:** crowdsec\
**Created:** [August 29, 2022, 9:03pm UTC](https://discourse.crowdsec.net/t/how-to-add-bouncer-to-docker-compose-file/930 "2022-08-29T21:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/alex/32/417_2.png) [@Alex](https://discourse.crowdsec.net/u/Alex)\
**Post date:** [August 29, 2022, 9:03pm UTC](https://discourse.crowdsec.net/t/how-to-add-bouncer-to-docker-compose-file/930/1 "2022-08-29T21:03:56Z")

</div>

Hi all!  
I configured according to this instruction

> <https://github.com/crowdsecurity/example-docker-compose/blob/main/docker-compose.yml>

it says:  
“and later we’re going to plug a firewall bouncer to it”

How to do it?  
How to do it in docker compose file?

---

<div class="post-metadata">

**Author:** ![klausagnoletti](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/klausagnoletti/32/201_2.png) [@klausagnoletti](https://discourse.crowdsec.net/u/klausagnoletti)\
**Post date:** [September 7, 2022, 10:45am UTC](https://discourse.crowdsec.net/t/how-to-add-bouncer-to-docker-compose-file/930/2 "2022-09-07T10:45:46Z")

</div>

Hey and sorry for the late reply. The short answer is: you don’t. Not related to Docker compose but to that you don’t want to run the firewall bouncer in a docker container as it requires root perms to run so a potential security nightmare. So instead I recommend running the firewall bouncer on the host or using another bouncer.

Another thing: I don’t recommend you using instructions in that how-to as it’s aging. It’s on my list of things I want to update but until then you should try out [Integrating CrowdSec with Traefik & Discord](https://spad.uk/integrating-crowdsec-with-traefik-discord/). If you want to experiment with running the firewall bouncer on your docker host I wrote about that in [CrowdSec with NGINX Proxy Manager - The open-source & collaborative IPS](https://www.crowdsec.net/blog/crowdsec-with-nginx-proxy-manager). Also if you want faster help going forward I can recommend joining our Discord at [CrowdSec](https://discord.gg/crowdsec).

---

<div class="post-metadata">

**Author:** ![Alex](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/alex/32/417_2.png) [@Alex](https://discourse.crowdsec.net/u/Alex)\
**Post date:** [September 7, 2022, 1:25pm UTC](https://discourse.crowdsec.net/t/how-to-add-bouncer-to-docker-compose-file/930/3 "2022-09-07T13:25:28Z")

</div>

yes, I already figured it out, set it up manually  
Thanks
