coredns deployment

This commit is contained in:
Bryan Joshua Pedini 2023-09-29 22:58:48 +02:00
parent d0724b679b
commit 2ec7724c5f
3 changed files with 32 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
---
services:
coredns:
image: ${CDNS_REPO}:${CDNS_VERSION}
restart: unless-stopped
command: -conf /data/config/Corefile
labels:
### Section Diun
- diun.enable=${DIUN_ENABLE}
- diun.watch_repo=${DIUN_WATCHREPO}
- diun.sort_tags=${DIUN_SORTALGO}
- diun.include_tags=${DIUN_INCLUDE}
- diun.exclude_tags=${DIUN_EXCLUDE}
ports:
- 53:53/tcp
- 53:53/udp
volumes:
- ${CDNS_DATA}/config:/data/config
- ${CDNS_DATA}/zones:/data/zones

11
example.env Normal file
View File

@ -0,0 +1,11 @@
# CoreDNS
CDNS_REPO=coredns/coredns
CDNS_VERSION=1.11.1
CDNS_DATA=./data
# Diun
DIUN_ENABLE=true
DIUN_WATCHREPO=true
DIUN_SORTALGO=semver
DIUN_INCLUDE=
DIUN_EXCLUDE=