crowdsec_manager
crowdsec_manager copied to clipboard
Issue updating Traefik whitelist
I added crowdsec manager to the existing Pangolin docker compose:
crowdsec-manager:
image: hhftechnology/crowdsec-manager:1.1.0
container_name: crowdsec-manager
restart: unless-stopped
expose:
- "8080"
environment:
- PORT=8080
- ENVIRONMENT=production
- LOG_LEVEL=info
- LOG_FILE=/app/logs/crowdsec-manager.log
- DOCKER_HOST=unix:///var/run/docker.sock
- COMPOSE_FILE=/app/docker-compose.yml
- PANGOLIN_DIR=/app
- CONFIG_DIR=/app/config
- DATABASE_PATH=/app/data/settings.db
- TRAEFIK_DYNAMIC_CONFIG=/etc/traefik/dynamic_config.yml
- TRAEFIK_STATIC_CONFIG=/etc/traefik/traefik_config.yml
- TRAEFIK_ACCESS_LOG=/var/log/traefik/access.log
- TRAEFIK_ERROR_LOG=/var/log/traefik/traefik.log
- CROWDSEC_ACQUIS_FILE=/etc/crowdsec/acquis.yaml
- BACKUP_DIR=/app/backups
- RETENTION_DAYS=60
- INCLUDE_CROWDSEC=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/traefik:/etc/traefik:rw
- ./config:/app/config:rw
- ./docker-compose.yml:/app/docker-compose.yml
- ./backups:/app/backups
- ./config/traefik/logs:/app/logs
- ./data:/app/data
- ./config/traefik/logs:/var/log/traefik:ro
depends_on:
- crowdsec
- traefik
When I try adding an IP to the whitelist with Traefik selected, it warns me that the config volume is read-only. Is there something else I need to change? The rest of the docker compose file is the default config created by the Pangolin installer.
Yes pangolin creates ro volume for traefik, you need to remove that or amended that restriction
Thanks for the heads up, removing the :ro fixed the issue.