Bump base image (#538)
[discourse_docker.git] / templates / cache-dns.template.yml
1 # You can use this template to cache DNS lookups for
2 #
3 # DISCOURSE_DB_HOST
4 # DISCOURSE_DB_BACKUP_HOST
5 # DISCOURSE_REDIS_HOST
6 # DISCOURSE_REDIS_SLAVE_HOST
7 #
8 # If you are using a hostname vs IP for these entries and have
9 # an internal DNS outage Discourse will stop working
10 #
11 # This template allows you to cache entry in the hosts file
12 #
13 # Note, for this to work correctly you must also install the
14 # discourse-prometheus plugin to collect stats
15
16 hooks:
17 after_bundle_exec:
18 - exec: "mkdir -p /etc/service/cache_critical_dns/"
19 - exec: "cp /var/www/discourse/script/cache_critical_dns /etc/service/cache_critical_dns/run"