# Need help with using crowdsec with traefik

**URL:** <https://discourse.crowdsec.net/t/need-help-with-using-crowdsec-with-traefik/1697>\
**Category:** Uncategorized\
**Created:** [March 11, 2024, 8:04am UTC](https://discourse.crowdsec.net/t/need-help-with-using-crowdsec-with-traefik/1697 "2024-03-11T08:04:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moongya](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@moongya](https://discourse.crowdsec.net/u/moongya)\
**Post date:** [March 11, 2024, 8:04am UTC](https://discourse.crowdsec.net/t/need-help-with-using-crowdsec-with-traefik/1697/1 "2024-03-11T08:04:13Z")

</div>

Hello all,

I am following the guide at [Enhance Docker Compose Security with CrowdSec and Traefik](https://www.crowdsec.net/blog/enhance-docker-compose-security) to use crowdsec with traefik. I needs some help with my docker compose files please.

The files are pasted here

[https://docs.google.com/document/d/1aSE7Jee1wvkUcUZO\_1Y\_yxrqcufD2ElT59GW0Q1HHvw/edit?usp=sharing](https://docs.google.com/document/d/1aSE7Jee1wvkUcUZO_1Y_yxrqcufD2ElT59GW0Q1HHvw/edit?usp=sharing)

as this forum did not allow me to paste the docker compose files here. Thanks.

Edit 1. the earlier google docs link as I had inadvertantly exposed sensetive info.  
Edit 2. No longer sharing the google docs link as the issue is solved.

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [March 11, 2024, 8:56am UTC](https://discourse.crowdsec.net/t/need-help-with-using-crowdsec-with-traefik/1697/2 "2024-03-11T08:56:18Z")

</div>

I will reply soon but for now your leaking your cloudflare API key which for ACME would have write privileges to your DNS so please remove this google docs link entirely as it tracks history so anyone with read access can see it.

The error is this line

```auto
 - "--accessLog.bufferingSize=100 # Configuring a buffer of 100 lines"

```

The comment is within the `"` quotes it should be

```auto
- "--accessLog.bufferingSize=100" # Configuring a buffer of 100 lines

```

The error is quite descriptive on this

```auto
2024/03/11 07:40:02 command traefik error: failed to decode configuration from flags: strconv.ParseInt: parsing "100 # Configuring a buffer of 100 lines": invalid syntax

```

**CLASSIFY YOUR API KEY AS COMPROMISED YOU NEED TO ROTATE THEM ASAP**

---

<div class="post-metadata">

**Author:** ![moongya](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@moongya](https://discourse.crowdsec.net/u/moongya)\
**Post date:** [March 11, 2024, 9:24am UTC](https://discourse.crowdsec.net/t/need-help-with-using-crowdsec-with-traefik/1697/3 "2024-03-11T09:24:46Z")

</div>

Many thanks for your kind help. I owe you a beer or two!
