diff --git a/docker-compose.yml b/docker-compose.yml index 1d14e51..ba4d762 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: dns_server: hostname: dns.karmacoma.dev - image: technitium/dns-server:14.2.0 + image: technitium/dns-server:14.3.0 # For DHCP deployments, use "host" network mode and remove all the port mappings, including the ports array by commenting them # network_mode: "host" ports: @@ -15,6 +15,12 @@ services: volumes: - config:/etc/dns restart: unless-stopped + healthcheck: + test: ["CMD-SHELL", "dig +short @127.0.0.1 dns.karmacoma.dev || exit 1"] + interval: 1m30s + timeout: 30s + retries: 5 + start_period: 30s sysctls: - net.ipv4.ip_local_port_range=1024 65000