From 4d29b2082d978270fb3f16c6cb4638736933da3c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 24 Jun 2021 11:33:55 +0200 Subject: [PATCH] amend comments --- packages/health-check/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 99d00b07..741d532f 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -18,9 +18,11 @@ COPY cli cli EXPOSE 3100 ENV NODE_ENV production -# 1. prepend dnsmasq nameserver so it tries to resolve first -# 2. start dnsmasq in the background and alias siasky.net with current server ip to ommit load balancer -# 3. start crond in the background +# 1. start dnsmasq in the backgroundand with: +# - alias to siasky.net with current server ip so it overrides load balancer request +# - default docker nameserver 127.0.0.11 for any other request +# 2. replace docker nameserver with dnsmasq nameserver in /etc/resolv.conf +# 3. start crond in the background to schedule periodic health checks # 4. start the health-check api service CMD [ "sh", "-c", \ "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \