This repository has been archived on 2020-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
dns-docker/dns.yml

48 lines
954 B
YAML
Raw Normal View History

2020-01-23 16:19:16 +00:00
version: '3.7'
x-logging: &json-log
driver: 'json-file'
options:
max-size: 20m
max-file: '5'
networks:
tig_monitoring:
external: true
#host:
# external: true
2020-01-23 16:19:16 +00:00
backend:
driver: overlay
attachable: true
driver_opts:
encrypted: "true"
services:
unbound:
image: localhost:5000/unbound:latest
deploy:
mode: global
restart_policy:
condition: any
update_config:
parallelism: 2
delay: 5s
order: stop-first
2020-01-23 16:19:16 +00:00
failure_action: rollback
logging: *json-log
2020-02-01 11:09:09 +00:00
volumes:
- "/etc/hosts:/etc/hosts:ro"
2020-01-23 16:19:16 +00:00
ports:
- target: 5353
published: 53
protocol: tcp
mode: host
- target: 5353
published: 53
protocol: udp # Potentially vulnerable without any ratelimits, see https://www.us-cert.gov/ncas/alerts/TA14-017A
mode: host
2020-01-23 16:19:16 +00:00
networks:
#- host
2020-01-23 16:19:16 +00:00
- backend
- tig_monitoring