This commit is contained in:
traveler 2025-03-10 21:17:02 -05:00
parent 39046389a5
commit 5c8941d4fc
2 changed files with 40 additions and 2 deletions

View file

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