blob: 3327c188db34e51c26c474f6c34e1b3e95d03a7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
services:
labdns:
image: mvance/unbound:latest
ports:
- "53:53/udp"
- "53:53/tcp"
volumes:
- {{ labdns_base }}/volumes/unbound/forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf:ro
- {{ labdns_base }}/volumes/unbound/a-records.conf:/opt/unbound/etc/unbound/a-records.conf:ro
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ deployment_time }}
{% if not homelab_build %}
healthcheck:
test: ["CMD-SHELL", "drill loadbalancer.{{ domain }} @127.0.0.1 | grep -q {{ loadbalancer_ip }}"]
retries: 3
timeout: 5s
start_period: 8s
{% endif %}
deploy:
mode: replicated
update_config:
parallelism: 1
failure_action: rollback
order: start-first
monitor: 25s
replicas: 2
|