crowdsec_manager icon indicating copy to clipboard operation
crowdsec_manager copied to clipboard

INCLUDE_PANGOLIN/GERBIL=false .env variable not working

Open bido1990 opened this issue 7 months ago • 4 comments

Expected Behavior

when adding in the .env variables include_pangolin=false OR include_gerbil=false, those container should be ignored in the health status page.

Current Behavior

The variables are set but the detection of those containers persist, giving in the status page a "issue detected" printout.

Possible Solution

The .evn variables as described in the USAGE.MD are not correctly processed

Context (Environment)

services:
  crowdsec-manager:
    image: hhftechnology/crowdsec-manager:latest
    container_name: crowdsec-manager
    restart: unless-stopped
    ports:
      - "3001:3001"
    environment:
      - PORT=3001
      - ENVIRONMENT=production
      - LOG_LEVEL=debug
      - DOCKER_HOST=unix:///var/run/docker.sock
      - CONFIG_DIR=/config
      - DATABASE_PATH=/data/settings.db
      - TRAEFIK_DYNAMIC_CONFIG=/traefik/dynamic/traefik_dynamic.yml
      - TRAEFIK_STATIC_CONFIG=/traefik/data/traefik.yml
      - TRAEFIK_ACCESS_LOG=/traefik/logs/access.log
      - TRAEFIK_ERROR_LOG=/traefik/logs/traefik.log
      - CROWDSEC_ACQUIS_FILE=/crowdsec/config/acquis.yaml
      - BACKUP_DIR=/backups
      - RETENTION_DAYS=60
      - INCLUDE_CROWDSEC=true
      - INCLUDE_PANGOLIN=false
      - INCLUDE_GERBIL=false
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /path/to/crowdsec/dashboard/config:/app/config
      - /path/to/crowdsec/dashboard/backups:/app/backups
      - /path/to/crowdsec/dashboard/logs:/app/logs
      - /path/to/crowdsec/dashboard/data:/app/data
      - /path/to/traefik/logs:/var/log/traefik
Image

bido1990 avatar Apr 22 '26 08:04 bido1990

@bido1990 use image: hhftechnology/crowdsec-manager:independent tag. this id for crowdsec solo

hhftechnology avatar Apr 22 '26 09:04 hhftechnology

  crowdsec-manager:
    image: hhftechnology/crowdsec-manager:independent
    container_name: crowdsec-manager-independent
    restart: unless-stopped
    environment:
      - PORT=8080
      - ENVIRONMENT=production
      - CONFIG_DIR=/app/config
      - DATABASE_PATH=/app/data/settings.db
      - INCLUDE_CROWDSEC=true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config:/app/config
      - ./logs/app:/app/logs
      - ./data:/app/data

hhftechnology avatar Apr 22 '26 09:04 hhftechnology

@hhftechnology with that image the issue disappear, however since I am using also traefik i noticed there are some features/menu voices missing from the original one. Is there a middle solution? I am happy with indipendent, just trying to understand the difference between versions

bido1990 avatar Apr 22 '26 21:04 bido1990

@bido1990 Independent is much compact and covers all the crowdsec related features like hub, console, alerts, can be used with any proxy, feature missing are logs, notification setup for crowdsec and captcha setup for crowdsec.

There is a seperate mobile app if you want to run headless.

hhftechnology avatar Apr 23 '26 04:04 hhftechnology