sda
This commit is contained in:
parent
39046389a5
commit
5c8941d4fc
2 changed files with 40 additions and 2 deletions
30
caddy.yaml
30
caddy.yaml
|
|
@ -17,8 +17,9 @@ services:
|
|||
- vpn
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /export/Docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
- /export/Docker/caddy:/data
|
||||
- caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_logs:/var/log/caddy # Mount logs for CrowdSec
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
|
|
@ -31,3 +32,28 @@ networks:
|
|||
external: true
|
||||
vpn:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
caddyfile:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /export/Docker/caddy/Caddyfile
|
||||
|
||||
data:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /export/Docker/caddy
|
||||
|
||||
caddy_logs:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /export/Docker/caddy/logs
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
12
crowdsec.yaml
Normal file
12
crowdsec.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
version: "3.8"
|
||||
services:
|
||||
crowdsec:
|
||||
image: crowdsecurity/crowdsec
|
||||
container_name: crowdsec
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./crowdsec/config:/etc/crowdsec
|
||||
- ./crowdsec/data:/var/lib/crowdsec/data
|
||||
- /var/log/caddy:/var/log/caddy:ro # Mount Caddy logs
|
||||
environment:
|
||||
- COLLECTIONS=crowdsecurity/http-caddy
|
||||
Loading…
Add table
Add a link
Reference in a new issue