Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #147: Add cloudflare DNS Caddy plugin #148

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile.caddy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use the official Caddy builder
FROM caddy:builder AS builder

# Add the Cloudflare DNS plugin
RUN xcaddy build \
--with github.com/caddy-dns/cloudflare

# Use the official Caddy base image
FROM caddy:latest

# Copy the custom Caddy binary
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ services:
restart: always

caddy:
image: caddy:latest
build:
context: .
dockerfile: Dockerfile.caddy
ports:
- 80:80
- 443:443
Expand All @@ -52,6 +54,7 @@ services:
- ./public/images:/srv/images
environment:
- CADDY_AGREE=true
#- CLOUDFLARE_API_TOKEN=
restart: always
depends_on:
- meshinfo
Expand Down