Add network

This commit is contained in:
2025-07-08 16:27:43 +05:30
parent f076855e32
commit 601ec06611
10 changed files with 71 additions and 51 deletions

View File

@@ -2,8 +2,6 @@ services:
crowdsec:
image: ghcr.io/crowdsecurity/crowdsec:v1.6.9
container_name: crowdsec
networks:
- backend
environment:
- BOUNCER_KEY_CADDY=${CROWDSEC_API_KEY}
- GID=${GID}
@@ -13,6 +11,8 @@ services:
- ${APPDATA_PATH}/caddy/crowdsec-db:/var/lib/crowdsec/data/
- ${APPDATA_PATH}/caddy/crowdsec-config:/etc/crowdsec/
- ${APPDATA_PATH}/caddy/caddy-logs:/var/log/caddy:ro
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --spider --quiet --tries=1 --timeout=5 http://localhost:8080/health > /dev/null 2>&1 || exit 1"]
@@ -29,9 +29,6 @@ services:
condition: service_healthy
cap_add:
- NET_ADMIN
networks:
- frontend
- backend
environment:
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
- CROWDSEC_API_KEY=${CROWDSEC_API_KEY}
@@ -45,6 +42,9 @@ services:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:443
- ${HTTPS_PORT}:443/udp
networks:
- frontend
- backend
restart: unless-stopped
networks: