From bac07b87c665e03d131e152c8e01838a2d84c38b Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 18 Aug 2021 23:58:07 +0900 Subject: [PATCH] enable relolad --- docker-compose.yml | 3 ++- etc/coredns/Corefile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9a08d43..41fc32b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,8 +41,9 @@ services: expose: ["443"] ports: ["853:853"] volumes: - - ./etc/coredns/Corefile:/Corefile + - ./etc/coredns:/etc/coredns - caddy_data:/var/lib/caddy/data + command: "-conf /etc/coredns/Corefile" volumes: caddy_data: caddy_config: diff --git a/etc/coredns/Corefile b/etc/coredns/Corefile index 0af65b1..c566f42 100644 --- a/etc/coredns/Corefile +++ b/etc/coredns/Corefile @@ -1,4 +1,5 @@ https://. tls://. { tls /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.keiu.net/dns.keiu.net.crt /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.keiu.net/dns.keiu.net.key forward . /etc/resolv.conf + reload }