mirror of
https://github.com/acedanger/docker.git
synced 2025-12-06 01:10:11 -08:00
Add Cloudflare DNS support to Caddy configuration
- Updated .env.example to include CF_ZONE_READ and CF_DNS_EDIT variables. - Enhanced Caddyfile to utilize Cloudflare DNS for TLS. - Created Dockerfile for building Caddy with Cloudflare DNS support. - Modified docker-compose.yml to use the new caddy-cloudflare image and set environment variables.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
|
||||
caddy:
|
||||
image: caddy/caddy:latest
|
||||
image: caddy-cloudflare
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
@@ -11,6 +11,9 @@ services:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
environment:
|
||||
CF_ZONE_READ: ${CF_ZONE_READ}
|
||||
CF_DNS_EDIT: ${CF_DNS_EDIT}
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user