amend comments

This commit is contained in:
Karol Wypchlo 2021-06-24 11:33:55 +02:00
parent 88238be825
commit 4d29b2082d
1 changed files with 5 additions and 3 deletions

View File

@ -18,9 +18,11 @@ COPY cli cli
EXPOSE 3100 EXPOSE 3100
ENV NODE_ENV production ENV NODE_ENV production
# 1. prepend dnsmasq nameserver so it tries to resolve first # 1. start dnsmasq in the backgroundand with:
# 2. start dnsmasq in the background and alias siasky.net with current server ip to ommit load balancer # - alias to siasky.net with current server ip so it overrides load balancer request
# 3. start crond in the background # - 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 # 4. start the health-check api service
CMD [ "sh", "-c", \ CMD [ "sh", "-c", \
"dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \