Add networking for caddy
This commit is contained in:
@@ -3,8 +3,7 @@ services:
|
|||||||
image: ghcr.io/crowdsecurity/crowdsec:v1.6.9
|
image: ghcr.io/crowdsecurity/crowdsec:v1.6.9
|
||||||
container_name: crowdsec
|
container_name: crowdsec
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
- backend
|
||||||
ipv4_address: 172.30.0.3
|
|
||||||
environment:
|
environment:
|
||||||
- BOUNCER_KEY_CADDY=${CROWDSEC_API_KEY}
|
- BOUNCER_KEY_CADDY=${CROWDSEC_API_KEY}
|
||||||
- GID=${GID}
|
- GID=${GID}
|
||||||
@@ -31,8 +30,7 @@ services:
|
|||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
- frontend
|
||||||
ipv4_address: 172.30.0.2
|
|
||||||
environment:
|
environment:
|
||||||
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
||||||
- CROWDSEC_API_KEY=${CROWDSEC_API_KEY}
|
- CROWDSEC_API_KEY=${CROWDSEC_API_KEY}
|
||||||
@@ -49,10 +47,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
frontend:
|
||||||
name: proxy
|
exernal: true
|
||||||
driver: bridge
|
backend:
|
||||||
ipam:
|
exernal: true
|
||||||
config:
|
|
||||||
- subnet: 172.30.0.0/16
|
|
||||||
gateway: 172.30.0.1
|
|
||||||
|
Reference in New Issue
Block a user