crowdsec_manager icon indicating copy to clipboard operation
crowdsec_manager copied to clipboard

FR: remove the mandatory for pangolin and traefik

Open jayjay3108 opened this issue 7 months ago • 10 comments

Hi there

I would love to use your project, but at the moment it is mandatory to use pangolin and traefik

I don’t use both of them but I love the idea for a web based crowdsec manager

jayjay3108 avatar Apr 10 '26 16:04 jayjay3108

@jayjay3108 @vaygr @maxlerebourg already coded. testing internally. It has an independent mobile app too.

hhftechnology avatar Apr 11 '26 03:04 hhftechnology

@jayjay3108 @vaygr @maxlerebourg APP Link - https://play.google.com/store/apps/details?id=com.crowdsec.manager.independent to helps us get involved as testers send us your playstore email address on our discord.

services:
  tailscale:
    image: tailscale/tailscale:latest
    container_name: tailscale-crowdsec
    hostname: crowdsec-manager-ts # The name that will appear in your Tailscale admin panel
    environment:
      - TS_AUTHKEY=
      - TS_STATE_DIR=/var/lib/tailscale
    volumes:
      - tailscale-data:/var/lib/tailscale
      - /dev/net/tun:/dev/net/tun
    cap_add:
      - net_admin
      - sys_module
    ports:
      - "8080:8080"
    networks:
      pangolin:
        aliases:
          - crowdsec-manager # Ensures other containers on the network can still reach it by its original name!
    restart: unless-stopped

  crowdsec-manager:
    image: hhftechnology/crowdsec-manager:independent
    container_name: crowdsec-manager-independent
    network_mode: service:tailscale # This is the magic: it merges networking with the Tailscale container
    depends_on:
      - tailscale
    restart: unless-stopped
    # 'expose' and 'networks' are removed here because Tailscale manages the network connection now
    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

networks:
  pangolin:
    external: true

volumes:
  tailscale-data:
Image

hhftechnology avatar Apr 11 '26 15:04 hhftechnology

@hhftechnology thanks! Can you also make tailscale optional?

vaygr avatar Apr 11 '26 16:04 vaygr

What do you mean, it's just a sidecar, you can remove it. Nothing is dependent on tailscale container.

hhftechnology avatar Apr 11 '26 16:04 hhftechnology

Ah, good to know. I just misunderstood the example above. Thought it was nailed to tailscale like pangolin.

vaygr avatar Apr 11 '26 16:04 vaygr

@hhftechnology thank you so much for making this happen

Will Spin it up these days <3

jayjay3108 avatar Apr 11 '26 20:04 jayjay3108

now app support any reverse proxy auth.

hhftechnology avatar Apr 15 '26 03:04 hhftechnology

does it have env flag for including traefik?

eugene-reim avatar Apr 22 '26 19:04 eugene-reim

@eugene-reim it doesn't need traefik flag , it can be used with any proxy

hhftechnology avatar Apr 23 '26 06:04 hhftechnology

When is the next version of the Independent variant coming out with latest features?

charlestephen avatar May 27 '26 01:05 charlestephen