mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +02:00
23 lines
411 B
YAML
23 lines
411 B
YAML
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
|