coredns deployment
This commit is contained in:
parent
a6e62d8812
commit
9135706ac0
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.env
|
||||
data
|
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal 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
11
example.env
Normal 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=
|
Loading…
Reference in New Issue
Block a user