--- 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