blob: c2a2ab58511bd86467628279db6886dd54d9c05e (
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
31
|
---
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
interval: 10s
start_period: 8s
{% endif %}
deploy:
mode: replicated
update_config:
parallelism: 1
failure_action: rollback
order: start-first
monitor: 25s
replicas: 2
|