Add Docker 1.12+ (service) based deployment (#9)

This commit is contained in:
James Mills 2017-08-08 03:02:04 -07:00 committed by Miek Gieben
parent 901fba81cb
commit 9a3a1a292b
2 changed files with 59 additions and 0 deletions

23
docker/dns.yml Normal file
View file

@ -0,0 +1,23 @@
version: "3.2"
services:
coredns:
image: coredns/coredns
command: -conf /data/Corefile
ports:
- "53:53/udp"
- "53:53/tcp"
- "9153:9153/tcp"
volumes:
- coredns:/data
deploy:
mode: global
placement:
constraints:
- "node.labels.iface != extern"
restart_policy:
condition: on-failure
volumes:
coredns:
external: true