FR: remove the mandatory for pangolin and traefik (crowdsec_manager #77)

:octopus: GitHub issue crowdsec_manager #77, opened by jayjay3108 on GitHub

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


:speech_balloon: Discuss it here. Status, fixes and code review stay on GitHub.

hhftechnology commented on GitHub:

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

hhftechnology commented on GitHub:

@​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:

vaygr commented on GitHub:

@​hhftechnology thanks! Can you also make tailscale optional?

hhftechnology commented on GitHub:

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

vaygr commented on GitHub:

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

jayjay3108 commented on GitHub:

@​hhftechnology thank you so much for making this happen

Will Spin it up these days <3

hhftechnology commented on GitHub:

now app support any reverse proxy auth.

eugene-reim commented on GitHub:

does it have env flag for including traefik?

hhftechnology commented on GitHub:

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

charlestephen commented on GitHub:

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