# Feature request: Docker swarm support (crowdsec\_manager #133)

**URL:** <https://forum.hhf.technology/t/feature-request-docker-swarm-support-crowdsec-manager-133/4570>\
**Category:** CrowdSec Manager\
**Tags:** issue\
**Created:** [August 15, 2026, 5:07pm UTC](https://forum.hhf.technology/t/feature-request-docker-swarm-support-crowdsec-manager-133/4570 "2026-08-15T17:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [August 15, 2026, 5:07pm UTC](https://forum.hhf.technology/t/feature-request-docker-swarm-support-crowdsec-manager-133/4570/1 "2026-08-15T17:07:56Z")

</div>

> 🐙 **GitHub issue [crowdsec\_manager #133](https://github.com/hhftechnology/crowdsec_manager/issues/133)**, opened by **`acheslow`** on GitHub

_Current Behavior_  
Currently only container names are supported for `CROWDSEC_CONTAINER_NAME`, `TRAEFIK_CONTAINER_NAME`, etc.

Docker swarm generates unique container names every time a stack is deployed; e.g. `crowdsec_crowdsec.d50tqboyg9quhk8hm5316tsl3.wmf7dapml06en9gmx3y1z1439`

It is possible to run crowdsec\_manager on swarm by updating the `*_CONTAINER_NAME` variables every time the crowdsec or traefik stacks are redeployed, but this is a cumbersome manual process.

_Desired Behavior_  
Ideally, crowdsec manager would also support swarm stacks by referencing the service names rather than the container names. The service names remain constant through redeploys; e.g. `crowdsec_crowdsec`, `traefik_traefik`, etc. These could be referenced statically in env variables like `CROWDSEC_SERVICE_NAME`, `TRAEFIK_SERVICE_NAME`, etc.

_Reference_

> <https://github.com/hhftechnology/crowdsec_manager/issues/98#issue-4333198559>
>
> Okay, so a slight issue. I am trying to run this on a Docker swarm. When I go to… spin this up, it keeps telling me that Crowdsec isn't available. Which I know it is, however, I feel it's because the name isn't only just "crowdsec"
> 
> I also should mention I am using the independent build.
> 
> \<img width="900" height="283" alt="Image" src="https://github.com/user-attachments/assets/7425c96b-5b17-4b9e-b995-2fa599644728" /\>

* * *

💬 Discuss it here. Status, fixes and code review stay on [GitHub](https://github.com/hhftechnology/crowdsec_manager/issues/133).

---

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [August 22, 2026, 3:30am UTC](https://forum.hhf.technology/t/feature-request-docker-swarm-support-crowdsec-manager-133/4570/2 "2026-08-22T03:30:48Z")

</div>

**`YouveGotMeowxy`** [commented on GitHub](https://github.com/hhftechnology/crowdsec_manager/issues/133#issuecomment-5377626253):

> I just got bit by this as well. I spent a couple hours trying to figure out why it wasn’t seeing my ‘crowdsec’ container event though they’re in the same network and my crowdsec container’s hostname is literally ‘crowdsec’. I’m so used to containers just knowing how to do this (in a swarm) that it didn’t even cross my mind this one didnt, lol.
> 
> ```auto
> level=info
> time=2026-08-22T03:02:53Z
> msg=Database initialized
> path=./data/settings.db
> level=info
> time=2026-08-22T03:02:53Z
> msg=History database initialized
> path=./data/history.db
> level=info
> time=2026-08-22T03:02:53Z
> msg=Multi-host Docker client initialized with single default host
> level=info
> time=2026-08-22T03:02:53Z
> msg=Checking prerequisites...
> level=info
> time=2026-08-22T03:02:53Z
> msg= Docker daemon is running
> level=fatal
> time=2026-08-22T03:02:53Z
> msg=Prerequisite check failed
> error=required container not found: crowdsec
> Container stopped
> 
> ```
