Very basic customisation of the base CoreDNS docker image.
docker stack deploy -c coredns-stack.yml coredns
Edit the Corefile
to suit your needs, then alter the coredns-stack.yml
file to use your own image. Eg, for a local build :
# coredns-stack.yml
...
coredns:
image: "my-amazing-coredns"
docker-compose -f coredns-stack.yml build
docker stack deploy -c coredns-stack.yml coredns